Copy link to clipboard
Copied
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.
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)));
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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)));
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
It setting ok. it is emtpy because you selected 2 ranges. so they have 2 values.
Copy link to clipboard
Copied
Dear Daitranthanhoa,
Thanks for your replay and help.
With Regards,
Vicky
Copy link to clipboard
Copied
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
Find more inspiration, events, and resources on the new Adobe Community
Explore Now