Bullet from Unicode
Moderators: Alexander Halser, Tim Green
Bullet from Unicode
I am new to H&M and do not know exactly about every change that was made to the bulleted and numbered lists. There are quite some posts on that matter.
Here is my wish:
When selecting a bullet symbol manually, I have to use the Wingdings fonts. In my standard font (Arial) H&M gives me the choice from the first 256 codepoints only. I would prefer to work with Unicode characters instead of Wingdings and thus minmizing the problems with different fonts in my help files (the black triangle is 25BA in hexadecimal Unicode).
Here is how ist looks like now: My version:
H&M 9.6.0 Build 6810
Here is my wish:
When selecting a bullet symbol manually, I have to use the Wingdings fonts. In my standard font (Arial) H&M gives me the choice from the first 256 codepoints only. I would prefer to work with Unicode characters instead of Wingdings and thus minmizing the problems with different fonts in my help files (the black triangle is 25BA in hexadecimal Unicode).
Here is how ist looks like now: My version:
H&M 9.6.0 Build 6810
You do not have the required permissions to view the files attached to this post.
- Tim Green
- Site Admin
- Posts: 23351
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Bullet from Unicode
Hi Berthold,
Unfortunately, bullets in lists are still problematic. This is a legacy issue that is still present in the Help+Manual editor. In the long run we are probably going to have to make some special additions to the XML schema for them, but that isn't going to be possible before the next major version because we can't make schema changes within a version. Currently, Bullet symbols can be processed as Unicode characters in lists, but only manually, because there are the following two requirements:
To force the use of Unicode characters as bullets you need to create the list directly in the XML editor tab, entering the necessary settings manually. Here's an example using Arial:
Important factors:
This is all not ideal, but as I noted it is going to require some major changes to the XML schema to handle it more efficiently. Sorry about that.
Unfortunately, bullets in lists are still problematic. This is a legacy issue that is still present in the Help+Manual editor. In the long run we are probably going to have to make some special additions to the XML schema for them, but that isn't going to be possible before the next major version because we can't make schema changes within a version. Currently, Bullet symbols can be processed as Unicode characters in lists, but only manually, because there are the following two requirements:
- The character is not from a symbol font like Wingdings or Symbol
- The character code is greater than 255
To force the use of Unicode characters as bullets you need to create the list directly in the XML editor tab, entering the necessary settings manually. Here's an example using Arial:
Code: Select all
<para styleclass="Normal">Here is some text</para>
<list id="0" type="ul" listtype="bullet" formatstring="☆" format-charset="DEFAULT_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal" style="text-indent:-27px; margin-left:27px; font-family:Arial; font-size:18pt; color:#000000;">
<li styleclass="Normal" style="text-indent:-27px; margin-left:27px;"><text style="font-size:18pt;">List with custom unicode bullets</text></li>
<li styleclass="Normal"><text style="font-size:18pt;">List with custom unicode bullets</text></li>
</list>
<para styleclass="Normal">Here is some more text</para>
- The bullet character definition is the formatstring="☆" and it must be higher than 255 decimal. The syntax must also be correct, with &#xxxx;, otherwise it will get split up into entities.
- You must include the font-family: attribute inside the stye= attribute using a Unicode font if the styleclass= definition (the style from your project) used does not use a Unicode font.
- You must include the format-charset="DEFAULT_CHARSET" specification.
This is all not ideal, but as I noted it is going to require some major changes to the XML schema to handle it more efficiently. Sorry about that.
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Re: Bullet from Unicode
Hi Tim,
Thank you, it worked!
Here a tip for other readers:
To get a mixed list with numbers and bullet points, you start with a numbered list. To change single lines into bullet:
Regards
Berthold
PS: The nice Bavarian lorem ipsum generator is here: https://bavaria-ipsum.de/
Thank you, it worked!
Code: Select all
<topic template="Default" modified="2024-11-29T12:33:27.434+01:00" lasteditedby="berthold.ladurner" version="2">
<title>Neues Topic</title>
<body>
<header>
<para styleclass="Heading1">Neues Topic</para>
</header>
<list id="0" type="ol" listtype="decimal" formatstring="%0:s." format-charset="DEFAULT_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal" style="font-family:Arial; font-size:10pt; color:#000000;">
<li styleclass="Normal">Bavaria ipsum dolor sit amet elit kasd i hob di narrisch gean Schdarmbeaga See, et! Weiznglasl </li>
<li styleclass="Normal">im Beidl est hob i an Suri ut iabaroi, diam! Heitzdog gubergren diam sunt, fugiat blärrd Deandlgwand.</li>
</list>
<list id="1" type="ul" listtype="bullet" formatstring="►" format-charset="DEFAULT_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal" style="font-family:Arial; font-size:10pt; color:#000000;">
<li styleclass="Normal">I daad Klampfn ea kimmt Gstanzl assum sog i Radler obandeln helfgod! Wuid Gaudi und sei Baamwach elit koa im Beidl at a Hoiwe do legst di nieda.</li>
</list>
<list id="0" type="ol" listtype="decimal" formatstring="%0:s." format-charset="DEFAULT_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal" style="font-family:Arial; font-size:10pt; color:#000000;">
<li styleclass="Normal">Nibh officia kimmt, nulla do Weißwiaschd eu ipsum eiusmod. Ledahosn g’hupft wia gsprunga dolor id Sauakraud, imperdiet! Fugiat Griasnoggalsubbm sadipscing ozapfa, Servas. </li>
</list>
</body>
</topic>
To get a mixed list with numbers and bullet points, you start with a numbered list. To change single lines into bullet:
- Mark the line
- Remove the numbering attribute
- Add the bullet attribute
Regards
Berthold
PS: The nice Bavarian lorem ipsum generator is here: https://bavaria-ipsum.de/
You do not have the required permissions to view the files attached to this post.
Re: Bullet from Unicode
Another question:
How can I fix the indent? The bullet line has a smaller indent than the numbered lines: The handles in the top bar cannot be moved. The paragraph formatting does not show any indent.
Thanks in advance!
How can I fix the indent? The bullet line has a smaller indent than the numbered lines: The handles in the top bar cannot be moved. The paragraph formatting does not show any indent.
Thanks in advance!
You do not have the required permissions to view the files attached to this post.
Last edited by BertholdL on Fri Nov 29, 2024 1:38 pm, edited 1 time in total.
- Tim Green
- Site Admin
- Posts: 23351
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Bullet from Unicode
It's actually a lot easier: Click in the element that you want to change and click on the Numbering List tool once to turn off the list for that element. The main list will then skip over that element and continue its numbering after it. Then you can apply a bullet to that element with the Bullet List tool. (This is achieved by splitting the list in two and using the same list ID for both lists, so that they are still a single list.)Do not try adding the bullet without removing the numbering first, or your whole list is destroyed and cannot be restored in any way other than discarding the latest changes and opening the last saved copy of the project.
In addition to this you can also define multi-level lists with bullets and numbers on different levels. See here for details:
https://www.helpandmanual.com/help/hm_w ... tline.html
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Re: Bullet from Unicode
This is exactly what I was doing. Maybe I did not express myself very clearly in the 3 steps how to do it. Thank you for writing it down understandably for everyone.Click in the element that you want to change and click on the Numbering List tool once to turn off the list for that element. The main list will then skip over that element and continue its numbering after it. Then you can apply a bullet to that element with the Bullet List tool.
- Tim Green
- Site Admin
- Posts: 23351
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Bullet from Unicode
By the way: You definitely never need to trash your topic and restart if something goes wrong with a list. You can always reset everything by selecting the entire list and hitting the List Tool. Sometimes you need to turn it off and on a couple of times to get everything reset but it's easily possible.
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Re: Bullet from Unicode
Thanks for the tip!
Did you notice my post which I published in the very moment when you uploaded your answer? I am afraid it got lost during the continuation of our thread.
viewtopic.php?p=73201#p73201
Did you notice my post which I published in the very moment when you uploaded your answer? I am afraid it got lost during the continuation of our thread.
viewtopic.php?p=73201#p73201
- Tim Green
- Site Admin
- Posts: 23351
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Bullet from Unicode
The indent in lists is controlled by the indent of the FIRST item in the list. By default, lists come with a standard internal indent, which is sufficient for single-digit numbered lists and regular bullets. If you need a larger indent you need to apply a larger hanging indent to the first item in the list, either manually or with a style. This indent then applies to the entire list, including sub-levels.
It's all in this topic in the help ("How to change list indents" section):
https://www.helpandmanual.com/help/hm_w ... tyles.html
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.