2 Replies Latest reply on Feb 10, 2012 12:34 AM by srikanth_mv

    Unable to access Mojikumi settings set by InDesign using jsx DOM

    srikanth_mv Level 1

      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,fal se,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,fal se,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



      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,2 3,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,f alse,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,



      While the same set without any change, i.e with 1 char para indent will give out the following small array:



      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:


      overrideMojikumiAkiListArray of
      compressionPriority:Short Integer
      Ordered array containing targetMojikumiClass:Short Integer
      sideMojikumiClass:Short Integer
      r/wThe 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.