cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Casing change issue for Turkish document

ptc-3063012
1-Newbie

Casing change issue for Turkish document

Hello all,

I have a turkish document and so far I could able to view the document correctly in the editor view. However I could not use change case feature very effiectively for example in turkish a lower case "i" when changed to uppercase "i" should be like "I" with a dot above it. How do I get this in ArborText. The Language option in preferences does not have turkish.

Karthik

4 REPLIES 4

Maybe you could use a specific font (I don't know if there is one for Turkish) in your FOSI/stylesheet.

Support for particular languages generally requires a variety of
considerations.  I have very little direct experience in supporting
other languages, but I suspect getting your native environment (the
operating system) setup correctly would solve at least some problems.
See help 10014 for a starting point.

-Brandon 🙂


On Mon, Oct 11, 2010 at 2:58 PM, Karthik Kumar
<karthik.kumar@merrillcorp.com> wrote:
> Hello all,
>
> I have a turkish document and so far I could able to view the document
> correctly in the editor view. However I could not use change case feature
> very effiectively for example in turkish a lower case "i" when changed to
> uppercase "i" should be like "I" with a dot above it. How do I get this in
> ArborText. The Language option in preferences does not have turkish.
>
>
>
> Karthik
>
> ----------

Hi Karthik-



I think Brandon's right, to make the function work out of the box, you'd probably have to change your machine's native configuration, which may be more than you want to do.



If you want to enable something like this without reconfiguring the OS, you could add a function that uses Java/Javascript to handle the conversion. That lets you set the locale arbitrarily. As a simple example, you could select a text string and execute the following javascript code:



// make sure to use Rhino JS engine so the Java bridge works

var doc = Application.activeDocument;

var text = doc.textSelection;

var trl = new Packages.java.util.Locale("tr","TR");

var jtext = new java.lang.String(text);

doc.textSelection.deleteContents();

doc.textSelection.insertNode(doc.createTextNode(jtext.toUpperCase(trl)));



This will replace the selection with the upper-case version of the string according to the conventions of Turkish. When I do this with "i" selected, I get "?" returned.



With a little massaging, you could wrap this in a function, attach it to a menu item and/or keyboard shortcut, maybe even extract the desired locale automatically from the document markup if it's available there (e.g. via xml:lang attribute).



HTH.



--Clay


Thanks Clay. I would go with your solution.
Top Tags