Copy link to clipboard
Copied
Hello all,
I am using Japanese InDesign version 7.5 on windows 7. I've set paragraph indent through mojikumi settings and trying to acces it through jsx object model. The following is what I did:
I have created a new Mojikumi set based on default MojikumiTableDefaults.LINE_END_ALL_ONE_HALF_EM_ENUM. All I have changed in new set is "Paragraph Mojikumi Indent" from none to 1 char. I want to access this setting from java script using its object model. I've tried the method paragraphObject.mojikumi.overrideMojikumiAkiList which seems to be the related method to access the customized settings. The output of the function I'm getting is a big array:.
2,23,false,1,1,1,0,false,3,23,false,1,1,1,0,false,4,23,false,1,1,1,0,false,5,23,false,1,1,1,0,false,6,23,false,1,1,1,0,false,21,23,false,1,1,1,0,false,7,23,false,1,1,1,0,false,8,23,false,1,1,1,0,false,9,23,false,1,1,1,0,false,10,23,false,1,1,1,0,false,11,23,false
,1,1,1,0,false,12,23,false,1,1,1,0,false,24,23,false,1,1,1,0,false,25,23,false,1,1,1,0,false,18,23,false,1,1,1,0,false,33,23,false,1,1,1,0,false,28,23,false,1,1,1,0,false,29,23,false,1,1,1,0,false,30,23,false,1,1,1,0,false,31,23,false,1,1,1,0,false,32,23,false,1,1,1,0
,false,1,23,false,1,1,1,0,false,26,23,false,1,1,1,0,false,27,23,false,1,1,1,0,false
For custom Mojikumi set created based on MojikumiTableDefaults.ONE_OR_ONE_HALF_EM_INDENT_LINE_END_UKE_ONE_HALF_EM_ENUM, with "Paragraph Mojikumi Indent" changed from default 1 char to none will give out the following array;
1,23,false,0,0,0,0,false,26,23,false,0,0,0,0,false,27,23,false,0,0,0,0,false,2,23,false,0,0,0,0,false,3,23,false,0,0,0,0,false,4,23,false,0,0,0,0,false,5,23,false,0,0,0,0,false,6,23,false,0,0,0,0,false,21,23,false,0,0,0,0,false,7,23,false,0,0,0,0,false,8,23,false,0,0,0,0,
false,9,23,false,0,0,0,0,false,10,23,false,0,0,0,0,false,11,23,false,0,0,0,0,false,12,23,false,0,0,0,0,false,24,23,false,0,0,0,0,false,25,23,false,0,0,0,0,false,18,23,false,0,0,0,0,false,33,23,false,0,0,0,0,false,28,23,false,0,0,0,0,false,29,23,false,0,0,0,0,false,30,
23,false,0,0,0,0,false,31,23,false,0,0,0,0,false,32,23,false,0,0,0,0,false
While the same set without any change, i.e with 1 char para indent will give out the following small array:
1,23,false,1,1,1,0,false,26,23,false,1,1,1,0,false,27,23,false,1,1,1,0,false
Of these values, how can I deterministically find the one that corresponds to paragraph mojikumi indent? Also the size of array seems to be changing as we add or change override values for different mojikumi sets. So its definitely not based on array index.
API description says:
overrideMojikumiAkiList | Array of akiDoesNotFloat:Boolean compressionPriority:Short Integer desired:Real maximum:Real minimum:Real Ordered array containing targetMojikumiClass:Short Integer sideIsAfterTarget:Boolean sideMojikumiClass:Short Integer | r/w | The mojikumi overrides for aki. Can return: Ordered array containing targetMojikumiClass:Short Integer, sideMojikumiClass:Short Integer, sideIsAfterTarget:Boolean, minimum:Real, desired:Real, maximum:Real, compressionPriority:Short Integer, akiDoesNotFloat:Boolean. |
I've already tried posting in japanese InDesign forum. I just want to try my luck here.
Any pointers to help links or any insights on how to decode the above array deterministically for all mojikumi sets will be of great help to me.
Thanks,
Srikanth
Hi
here is link when..
I get Diff custom setting and default setting
http://www.milligramme.cc/wp/archives/537
and get applied mojikumi sets in most front document
http://www.milligramme.cc/wp/archives/3368
I hope you will find it helpful
thanks
mg.
Copy link to clipboard
Copied
Hi
here is link when..
I get Diff custom setting and default setting
http://www.milligramme.cc/wp/archives/537
and get applied mojikumi sets in most front document
http://www.milligramme.cc/wp/archives/3368
I hope you will find it helpful
thanks
mg.
Copy link to clipboard
Copied
Thanks a lot mg. Paragraph mojimuki indent setting in most cases is being reflected in character class 23. I might have to experiment further for any cases left out.
Thanks again for your post.