User talk:Regina/HowTo Symbol For Character Style
Thank you very, very much for your efforts to help people who are working with styles to be more productive!
I've a question regarding umlauts:
I'm working with a Writer template in my company that is about 10 years old and there exists styles with umlauts in their name (e.g. "Companyname-Tabellenüberschrift"). I couldn't get that styles to work as toolbar buttons. In xlink:href I changed the ü to %252 ("Tabellen%252berschrift") but it didn't work. I think it's because the style is saved as "Tabellenüberschrift" and not as "Tabellen%252berschrift" in the XML files of the document and template.
This is an example line:
<toolbar:toolbaritem xlink:href=".uno:StyleApply?Style:string=Companyname-Tabellen%252berschrift&FamilyName:string=ParagraphStyles" toolbar:text="Tabellen-H1"/>
Do you have another idea what could help or did I miss something?
I don't want rename the styles with umlauts in their names because hundreds over hundreds documents based on that template wouldn't fit anymore.)
- If that are names, which you have defined yourself, then they can likely be used as they are, without any %-encoding. To test that, you can assign such a style to a shortcut key. The result is stored in the file registrymodifications.xcu in your user profile. The generated item should be somewhere in the start area of the file. It lools like
<item oor:path="/org.openoffice.Office.Accelerators/PrimaryKeys/Modules/org.openoffice.Office.Accelerators:Module['com.sun.star.text.TextDocument']"> <node oor:name="U_MOD2" oor:op="replace"> <prop oor:name="Command" oor:op="fuse"> <value xml:lang="de">.uno:StyleApply?Style:string=Überzögärn&FamilyName:string=ParagraphStyles</value> </prop></node></item>
- The 'value' part has the string you need. I have used a dummy Paragraph style name "Überzögärn" to get some umlauts. --Regina (talk) 2017-03-27T12:56:12 (UTC)