Ask Your Question
0

Create round borders/circles around numbering numbers?

asked 2019-01-06 14:43:44 +0200

appreciatethehelp gravatar image

updated 2019-01-07 05:39:39 +0200

If I modify the character style being used using the Styles & Formatting menu there is a "borders" tab, but it only creates square borders.

Thanks.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2019-01-06 16:09:17 +0200

RGB-es gravatar image

There are a couple of fonts that offer "numbers in circles" through OpenType substitutions. For example, with Junicode you can get any number from 0 to 20 inside a circle (and from 1 to 9 inside a double circle) using the +dlig feature and Sukhumala uses +nalt for a similar effect

image description

As you can see you cannot compose arbitrary numbers and you are limited to what the font provides.


To learn more about how to use OpenType features in Writer, you can check my book about Writer.

edit flag offensive delete link more

Comments

@RGB-es: from your description, it looks like OpenType only offsets the number glyphs within the Unicode set, i.e. my answer finally is equivalent to yours, without the :dlig or :nalt fuss, though mine needs to code explicitly the Unicode glyph. Given this equivalence, does your solution suffer the same shortcoming as mine in numbering list context?

Or, since you must write [ (a number) ], can you define the brackets as before and after separators and get automatically the circled number?

ajlittoz gravatar imageajlittoz ( 2019-01-07 08:02:56 +0200 )edit

@ajlittoz yes, setting a character style that uses Junicode:dlig as font name and setting the list to have the square brackets as separators before and after is enough. You'll not see the effect in the list setting preview, but in the document it will work without problems (just tried).

RGB-es gravatar imageRGB-es ( 2019-01-07 09:52:01 +0200 )edit

@RGB-es: thanks, great trick! +1

What happens if you overflow the circled or double circled range? Can you try a double circled numbered list with 12 items?

ajlittoz gravatar imageajlittoz ( 2019-01-07 09:58:07 +0200 )edit

@ajlittoz when you overflow, you just get those extra numbers between square brackets :(

RGB-es gravatar imageRGB-es ( 2019-01-07 10:14:05 +0200 )edit
0

answered 2019-01-06 16:45:55 +0200

ajlittoz gravatar image

Provided you don't need more than 20 numbers, you can use the circled Unicode characters starting at U+2460:

  • U+2460 to U+2473 CIRCLED NUMBER x
  • U+24F5 to U+24FE DOUBLE CIRCLED NUMBER x (only ten of those)

This works independently of OpenType; Of course, the glyphs must be included with the font. Most fonts pretending to be Unicode have them.

I haven't checked how it can be used in auto-numbered lists but I fear it will not give the expected result (i.e. it will behave like a bulleted list with custom bullet per level). Probably good only for manually numbered lists.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-01-06 14:43:44 +0200

Seen: 130 times

Last updated: Jan 07