Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Is it possible to add custom bullets to paragraph styles via scripting ?

People's Champ ,
Nov 17, 2011 Nov 17, 2011

According to the Model Object, it's not but I wanted to double check

bulletCharBulletreadonlyBullet character.

I need to know if it's possible to take whatever character and turn it into a bullet character.

TIA

Loic

TOPICS
Scripting
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 17, 2011 Nov 17, 2011

Hi, Loic!
Why not?
Make a new paragraph style in the UI with your custom bullet and test it yourself in the ESTK:

_paraStyle.bulletChar.properties.toSource();


that will give you (all r/w):

characterValue:
bulletsFont:
bulletsFontStyle:

_paraStyle.bulletChar.characterType //(r/w)


that will give you alternatively:

BulletCharacterType.UNICODE_ONLY

BulletCharacterType.UNICODE_WITH_FONT

BulletCharacterType.GLYPH_WITH_FONT

Uwe

Translate
Community Expert ,
Nov 17, 2011 Nov 17, 2011

Hi, Loic!
Why not?
Make a new paragraph style in the UI with your custom bullet and test it yourself in the ESTK:

_paraStyle.bulletChar.properties.toSource();


that will give you (all r/w):

characterValue:
bulletsFont:
bulletsFontStyle:

_paraStyle.bulletChar.characterType //(r/w)


that will give you alternatively:

BulletCharacterType.UNICODE_ONLY

BulletCharacterType.UNICODE_WITH_FONT

BulletCharacterType.GLYPH_WITH_FONT

Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 17, 2011 Nov 17, 2011

Like so many linked objects in InDesign, [Bullet] itself is read-only -- probably because it's a composite object -- but its individual properties are all r/w:

http://jongware.mit.edu/idcsjs5.5/pc_Bullet.html


I see that this Bullet can not only set its character by Unicode value but also by GLYPH ID. Could that serve as a workaround (using convertBulletsAndNumberingToText) to insert any glyph into InDesign?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Nov 17, 2011 Nov 17, 2011
LATEST

Hi Uwe, Theunis,

Thanks a lot to both of you, it seems like I stopped a step too soon

Thanks theunis also for your html browser, I use it quite all day long

Loic

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines