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

How To Modify Japanese Character Spacing Options

Community Beginner ,
Jun 03, 2019 Jun 03, 2019

Dear Friends,

          We need to modify the Japanese character spacing options using Illustrator SDK API function.

          The red boxed option are need to handle on new plugin.

              

     Please note that we know this option are only placed Japanese illustrator version.

     We try to all API function for handled this option, but we could'n get any solution,

     So, if any one have idea about this option please guidance me to solve this problem.

With Regards,

   Vicky. 

TOPICS
SDK
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

Enthusiast , Jul 01, 2019 Jul 01, 2019

Value of Tsume, AkiLeft,Akiright is number.

In SDK you can set by:

strTsume="0";

oCharFeature.SetTsume(atof(convertWstring2Char(strTsume)));

strAkiLeft="-1"; //Auto

oCharFeature.SetLeftAki(atof(convertWstring2Char(strAkiLeft)));

strAkiRight="-1"; //Auto

oCharFeature.SetRightAki(atof(convertWstring2Char(strAkiRight)));

Translate
Adobe
Guide ,
Jun 03, 2019 Jun 03, 2019

I don't know how to handle those options specifically, but the only thing I can offer is that maybe you're using the wrong composer engine? The default engine (kLatinCJKComposer) may ignore the API calls that deal with those specific settings. It's been a while, but I'm pretty sure that's how it handles all the arabic & hebrew specific settings when you're using the kLatinCJKComposer composer engine.

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
Enthusiast ,
Jul 01, 2019 Jul 01, 2019

Value of Tsume, AkiLeft,Akiright is number.

In SDK you can set by:

strTsume="0";

oCharFeature.SetTsume(atof(convertWstring2Char(strTsume)));

strAkiLeft="-1"; //Auto

oCharFeature.SetLeftAki(atof(convertWstring2Char(strAkiLeft)));

strAkiRight="-1"; //Auto

oCharFeature.SetRightAki(atof(convertWstring2Char(strAkiRight)));

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 Beginner ,
Jul 03, 2019 Jul 03, 2019

Hi Friend,

 

    Thanks for your reply.

      I was try your code on my plugin,but it works only on default(Initial) values like as below snap for your values.

    

     After that i try to change  strTsume,strAkiLeft and strAkiRight values like as 1,0 and 0.Text character space and position was changed.

     Then Japanese Character Spacing combo box values as empty like as below snap.      

   

     For Example: If i need to change SetRightAki value as 自動  into  ベタ  on Character Style/Space Panel,What to do?

      I have another one doubt about that, I understood that SetRightAki ,SetLeftAki and SetTsume all this function are only for modify or create text process. It is not possible to set default value of current working document Character Style/Space.

With Regards,

    Vicky

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
Enthusiast ,
Jul 03, 2019 Jul 03, 2019

It setting ok. it is emtpy because you selected 2 ranges. so they have 2 values.

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 Beginner ,
Jul 03, 2019 Jul 03, 2019

Dear Daitranthanhoa,

     Thanks for your replay and help.

With Regards,

     Vicky

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 Beginner ,
Jul 29, 2019 Jul 29, 2019
LATEST

Dear Daitranthanhoa,

        Have a good day!

          I need your help to set SetTsume and SetLeftAki default as current document.

         I was already try this process but it was error on run time.

         If possible please guide me to set Tsume and LeftAki default values for document text style.

Following 2 methods of code was tried but both on fail at run-time.

Coding

Method 1:

   

ATE::DocumentTextResourcesRef textResourcesRef = NULL;

sAIDocument->GetDocumentTextResources(&textResourcesRef);

IDocumentTextResources textResources(textResourcesRef);

ICharStyle charStyle = textResources.GetNormalCharStyle();

if (charStyle.IsNull())

{

return result;

}

ICharFeatures feature = textResources.GetInsertionCharFeatures();

ATETextDOM::Unicode textstyle = NULL;

ATETextDOM::Int32 maxSize;

ATETextDOM::Int32  er = charStyle.GetName(&textstyle, maxSize);

char* strAkiLeft = "0"; //Auto

ATE::CharFeaturesRef testRef = feature.GetRef();

sAICharFeatures->SetLeftAki(testRef, atof(strAkiLeft ));

ATE::DocumentTextResourcesRef refTextresourceRef = textResources.GetRef();

sDocumentTextResources->SetInsertionFeaturesAndStyle(refTextresourceRef, testRef, &textstyle);

Method 2:

ATE::DocumentTextResourcesRef textResourcesRef = NULL;

sAIDocument->GetDocumentTextResources(&textResourcesRef);

IDocumentTextResources textResources(textResourcesRef);

ICharStyle charStyle = textResources.GetNormalCharStyle();

if (charStyle.IsNull())

{

return result;

}

ICharFeatures feature = textResources.GetInsertionCharFeatures();

ATETextDOM::Unicode textstyle = NULL;

ATETextDOM::Int32 maxSize;

ATETextDOM::Int32  er = charStyle.GetName(&textstyle, maxSize);

char* strAkiLeft = "0";

feature.SetLeftAki(atof(strAkiLeft));

textResources.SetInsertionFeaturesAndStyle(feature, &textstyle);

Please refer above two method coding and check where was i make mistake on coding.

If you have any idea above it please reply this mail.

with regards,

   Vicky

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