Thai script line breaking in CS6

Hello,
I am having serious difficulty finding a way to implement acceptable line breaking in a long document I am working in Thai script. I am working with InDesign CS6, using the World-Ready Composer. I have tried a variety of differnet Thai fonts. The text I am flowing into the document has already been marked (by the author) with a large number of additional acceptable break locations (which I have converted to different types of spaces). The text still breaks randomly in the middle of strings (and also at the space locations -- but not seemingly with any priority).
I have tried using the standard Paragraph Composer as well. Some line spacing changes, and cursor behaviour over some strings is different, but the bad line breaks still happen.
I have also tried the same text in CS5 and CS4. Same problem.
The Language setting for styles is set to 'No Language'. I was certainly hopeful that the extra breaks marked in the text with thin or zero width spaces would provide enough line break flexibility. Does not seem so.
Would anyone here have any advice, or other (better) experience working with Thai?
Thanks
Jeff

Joel,
Thanks very much for your reply. This was quite helpful. I was able to wrap all runs of Thai script letter characters with no break. I am actually importing InDesign Tagged Text into InDesign. I used the following regular expression to search and replace in the tagged text files.
Search: ([\u0E01-\u0E5B]+)
Replace: <cNoBreak:1>\1<cNoBreak:>
Using a GREP style in InDesign is an easier solution. Unfortunately there is a chance in the text I am working with that the resulting style will become nested within a piece of text already wrapped with a character style, so the local noBreak instruction is the only reliable way.
The World Ready Composer has added so much needed support for the OpenType font features required for complex script rendering. Much appreciated! I do hope in future versions of InDesign that support for these South Asian languages will continue to improve by adding the necessary text (morphology) analysis needed to implement real support for line breaking. (The characters in Thai belong to the Unicode line breaking class "SA", which indicates that software needs to provide this added support -- such as a dictionary lookup, or other analysis, to indicate which characters should be allowed to break after)
It feels like InDesign (at this point) is just treating all characters in these Thai text runs as an acceptable breaking location, and doing its best to stick close to the prefered justification word and letter spacing values.
Thanks, again for the helpful idea.
Jeff

Similar Messages

  • Dreamweaver CS6 - Losing Line Breaks of PHP Files

    Hi all,
    If this has been asked and answered, I apologize. I have scoured the forums and Google for this, but coming up empty.
    Yesterday, upgraded from DW CS5 to 6. First site working on, opened up both .htm and .php files. Made simple changes, and uploaded to the server (both within, and outside of DW).
    All the PHP files are immediately broken. When viewing the page code via my FTP program, all the formatting has been removed (basically line breaks). Obvioulsy, this would see like a "file type" issue. I have tried what seems to be every combination of settings in the Pref>New Document> config box and none make a difference.
    I also know this could be depended on my server type (Linux). The HTML pages don't seem to mind that all the line breaks are gone from the code, but PHP pages do.
    Attaching what the code looks in DW, but then looks like after I save it and view it via my FTP.
    Any help would be greatly appreciated!

    Hi Jon - I'm back! So - now that I have the Code Format toggled to Linux, it works perfectly when I put up my PHP files.
    However, I'm learning that when I put up .html files - they go up completely empty. Everything is stripped out - when I view it within my FTP software the pages are entirely blank.
    I have many sites that have files of each type, and this was never an issue with Dreamweaver 5.
    Thoughts?

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

  • Line breaks in Word document

    Hello,
    I am running into an issue when I open a Word document in Pages.  Line breaks are being converted into "  Did not happen in previous versions of Pages (I am on 5.1).  Same thing happens when I open a ppt in Keynote - so could be a Microsoft issue.
    Please help

    'Course it's all custom scripts, written for and tailored to each individual workflow. I even manage two of those workflows at the office, for two distinctly different publishing trajectories, each with very different needs, and thus very different scripts. Only the very basic processing of files is the same, but after that they diverge real fast, and thus I have to maintain two different sets of scripts.
    There is no single workflow tht "works for everyone", and there certainly is not a single script that does everything you imagine it could do.

  • Converting Mac/Unix line breaks to DOS

    I have a text file I regularly have to import into a web application, and the line breaks need to be DOS for it to work. I've been opening/saving as with TextWrangler, which can convert the line breaks.
    Is there a way to create a folder action or automator workflow that would automatically convert the line breaks every time that file (it's always the same file name and in the same folder) is placed in the folder?

    I found this:
    http://forums.macosxhints.com/showthread.php?t=125
    gives a few options, including a shell script.

  • Acrobat v9 JavaScript Alert Box - any way to add space or line break after each array item?

    I have a Document level Javascript used to identify blank required fields and is triggered on document actions, Print and Save. The script identifies the blank required fields, counts them, and outputs to an Alert box indicating the number of required fields blank and lists the fields by tooltip name. The script identifies the required fields by an asterisk at the end of each tool tip.
    My question is there any way to add a space or a line break after the comma for each listed item?
    Here is an image of the output where the listed items are all run together.
    Here is the code:
    function validateFields()
    //a counter for the number of empty fields
    var flg = 0
    // count all the form fields
    var n = this.numFields
    //create an array to contain the names of required fields
    //if they are determined to be empty
    var fArr = new Array();
    //loop through all fields and check for those that are required
    // all fields that have a '*' in their tool tip are required
    for(var i = 0;i<n;i++){
    var fn = this.getNthFieldName(i);
    var f = this.getField(fn);
    //tool tip is the fields\'s 'userName' property;
    var tt = f.userName
    //test for the '*';
    if(tt.indexOf('*')!=-1 && f.value == f.defaultValue){
    //increment the counter of empty fields;
    flg++;
    //add the fields userName (tool tip) to the list of empty field names;
    fArr[fArr.length] = tt;
    //now display a message if there are empty fields
    if(flg>0){
    app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
    else{
    this.print();

    Thank you! The alert box array items now have a line break, image below.  You know you have made my day and possibly several weeks as now I have more understanding about how to apply everything I have been reading in the Acrobat JavaScript guide and of course as soon as you pointed out using a "join", that triggered some old-days of working with Access and SQL queries.
    I will work on the required attribute to see how I might reference it.  I am laughing at myself now - good luck to me in figuring it out as I was very stick-in-the-mud regarding the line break issue.
    Thanks again and here is the result of the updated code:

  • Line break when spooling file

    Say if you create a spool file and your going to execute a
    select statement to write data to this file.
    Is it possible to get a select statement to automatically put a
    line break and go to the next line in the file it is spooling
    to??
    Say for example:
    Select 'DROP TABLE'||table_name||';'||
    'CREATE TABLE'||table_name||';'
    from user_tables;
    I apologize if this is confusing. Thanks.
    Troy

    I tried what you suggested for a unix system and I still have a
    problem. Sometimes there is a line break in between my insert
    and select statement when i try to run to the spooled script
    afterwards.
    For example:
    select 'INSERT INTO temp_table (name, height, numrows) '||chr(10)
    ||'SELECT name, height, 0 from index_stats;' from dba_indexes
    where owner = 'USER1' and index_name NOT LIKE 'SYS%';
    It will be like:
    INSERT INTO temp_table (name, height, numrows)
    SELECT name, height, 0 from index_stats;
    This only returns the record but doesn't insert it in the table.
    Any other suggestions on how to fix this would be greatly
    appreciated?? Thanks.

  • Applescript batch convert .RTF to .TXT with line breaks

    Hey guys, looking for help with an Applescript that can change a .RTF to a .TXT with line breaks.
    I have an Applescript that will go from a .DOC to a plain .TXT but haven't found anything to get from the .RTF to a .TXT wth line breaks.
    I'm doing this for Avid's Script Sync.
    Thanks for the help.

    Ok, you obviously mean something specific by "line breaks" that you're not being clear about.  are you looking for a specific kind of line ending: Mac style carriage return (CR) ending? Windows style carriage return line feed (CR/LF) endings, unix style line feed (LF) endings?  textutil provides LF by default (it's a unix utility after all); if you need a different line ending you'll need to pipe it through tr or modify it via applescript after you've done the conversion

  • Applescript batch convert DOC to TXT with line breaks

    Hey guys, I recently got stuck at work having to convert over 1,000 DOC files to TXT files with line breaks.
    I've found online several different Applescripts that work great at converting DOC files to TXT files but I can't find one that will do the TXT files with line breaks.
    If anyone has a script that can do this I would be crazy grateful.
    Converting these one by one with Word is taking forever to do.
    Thanks for any help you can give me.

    Excuse me for a moment for speaking harshly to you.  You are causing yourself utterly unnecessary headaches by not being clear with us and not stopping to think, and it's high time you learned that that is an incorrect way to approach anything on a computer.  Consider:
    you don't know what you're doing (in the sense that you don't know what 'text with line breaks' means)
    you don't know (or at least haven't explained) why this needs to be done
    (therefore) you don't know if this needs to be done at all
    (and yet) you are doing it anyway, in a mindlessly repetitive fashion, driving yourself batty and irritating me
    At least for the time being, humans are the ones who think and computers the ones who grunt away mindlessly; try to reverse those roles and everything gets done badly and slowly. Stop, look, think, plan ahead - that's what your brain is good at if you give it a chance.
    Now, as far as I can tell from poking around the web, 'text only with line breaks' means that the document  is saved as a plain-text file, but with a carriage return linefeed combination (CR/LF) as a paragraph delimiter (this is a Windows format - unix uses a single linefeed, Macs might use a single carriage return or a single linefeed). I don't know why anyone would want that format - most software will convert that seamlessly (or at least can be told to convert that).  Are you trying to feed this into some dinosaur of a database?  At any rate, if that's what you want, this script should do it. caution, this script overwrites the original files; I suggest you make a copy of one or two files in a separate folder, and run the script on them first to check that the output works for whatever reason you're doing this:
    set baseFolder to choose folder with prompt "Choose a folder of files to process"
    tell application "Finder"
              set fileList to (every file of baseFolder whose name extension is "txt") as alias list
    end tell
    repeat with thisFile in fileList
              set itsText to read thisFile
              if (offset of (return & linefeed) in itsText) = 0 then
      -- file is not already formatted with CR/LF, so convert
                        set itsChunks to tid(itsText, {return, linefeed})
                        set itsNewText to tid(itsChunks, return & linefeed)
                        set fp to open for access thisFile with write permission
                        set eof of fp to 0
      write itsNewText to fp as text
      close access fp
              end if
    end repeat
    on tid(input, delim)
      -- handler for text items conversions
              set {oldTID, my text item delimiters} to {my text item delimiters, delim}
              if class of input is list then
                        set output to input as text
              else
                        set output to text items of input
              end if
              set my text item delimiters to oldTID
              return output
    end tid

  • Delete command line breaks?

    I'm trying to delete these two folders: #SharedObjects - macromedia.com
    but the command line breaks because of the space in the 'Flash Player' folder.
    do shell script "rm -rf ~/Library/Preferences/Macromedia/Flash Player/macromedia.com"
    do shell script "rm -rf ~/Library/Preferences/Macromedia/Flash Player/#SharedObjects"
    Thanks for any help,
    Tom

    You're the man Niel! There's no question about that!
    Thank you,
    Tom

  • Replace Mac line breaks with Windows linebreaks?

    Is there a simple AppleScript that could process a plain text file created on a Mac and replace the line breaks with Windows-compatible \r\n line breaks?
    I thought this would be a very simple task but have been searching for quite a while and can't find anything.
    Thanks.
    Paul

    There are several approaches to this. Here's one of them:
    set theFile to (choose file)
    set MacText to paragraphs of (read theFile)
    set {oldDelims, my text item delimiters} to {my text item delimiters, (return & linefeed)}
    set WindowsText to MacText as text
    set my text item delimiters to oldDelims
    set outputFile to (open for access theFile with write permission)
    set eof outputFile to 0
    write WindowsText to outputFile
    close access outputFile
    To explain, the first line asks you to choose the file in question - you could use any technique to identify the file, including hard-coding the path or using a drag-and-drop handler.
    The second line gets the current paragraphs and calls them 'MacText'
    The third line saves the current text item delimiters in oldDelims and sets the new text item delimiters to the CR+LF combination.
    The fourth line performs the magic of transforming the file. It does this by coercing the list of paragraphs (obtained in line 2) into a single text block, and it inserts the current text item delimiters between each text item, miraculously giving you CRLF-terminated paragraphs.
    The fifth line restores the text item delimiters to whatever they were before (you don't know what they were, but don't need to know what they were, as long as you restore the previous setting - it's unlikely you want CRLF moving forwards).
    The rest of the script (lines 6 through 9) reopen the file you originally selected, sets the EOF to 0 (effectively wiping the file contents), then writes the CRLF-terminated text to the file and finally closes the file.
    Note that some people might suggest using text item delimiters to break up the original text file on CRs but that would be wrong IMHO. The reason is that 'paragraphs of' can detect and handle both CR and CRLF-terminated paragraphs, leaving you with clean paragraphs into which you insert CRLFs.
    This means that if the file originally had CRLF-terminated paragraphs you'd end up with the same data, but at least there was no harm done.
    In contrast, if you simply searched for CRs and replaced them with CRLFs you could have the situation where you selected a CRLF-terminated file (maybe you didn't realize it was already in the Windows format) and your script would blindly replace each CR with CRLF, meaning you'd end up with CRLFLF combinations, which is very wrong.

  • Deleting extra forced line breaks with Find/Change

    Ladies and Gentlemen,
    I'm importing word .doc that are text-heavy and the formatting is such that there are lots of extra forced line breaks creating a blank line between paragraphs.
    To avoid manually deleting the extra forced line breaks to eliminate the blank line of space between paragraphs, what are the best steps to doing this an easier way?
    Any advice on clear steps to do it using the find/change option?
    Thanks in advance as always..
    JRH

    Are you talking about two hard returns [Enter] in a row, or a soft and hard return [Shift + Enter] and [Enter]? A forced line break is a soft return, but most Word users would just hit the return key for an empty paragraph to get an empty line.
    In either case, you can do a simple text find change, if GREP intimidates you. Use the special characters menu to enter either two "end of paragraph" or a "forced line break" and "end of paragraph" markers into the find field and a single "end of paragraph" marker into the change field.
    This is included as part of the "Find/change by list" sample script which adds some other common cleanup functions like converting two spaces to one. The advantage to using GREP is it will find any number of consecutive paragraph end markers and convert to one in a single pass, while a text search must be run multiple times to catch the heavy handed author.
    Peter

  • Line breaks (%0a) not working in pre-populated mailto links?

    Anyone else having this problem?
    I'm using mailto links in my folio that include "subject" and "body" information, so that when the user clicks on the link, it opens a prepopulated email that is ready to send.
    Unfortunately, the line breaks (%0a) are not working, so a nicely formatted email with a couple paragraphs and a signoff at the bottom is turning into one long string of text.
    The weird thing is, every other special character (e.g. %20 for spaces) is working just fine.
    For example, here's a mailto link I might use:
    mailto:test%40test.com?subject=subject%20test&body=Here's%20my%20first%20paragraph.%0A%0AH ere's%20my%20second%20paragraph.%20There%20should%20be%20a%20full%20break%20before%20and%2 0after.%0A%0ASincerly%2C%0AiPad%20email%20test
    Every character will work just fine except for the %0A%0A portion of the code.
    That is going on?

    You have to edit the XML Source code to do this. First, put a value in the object tab > value tab > Default box so that you can find it easily in the XML code. Click on the field to select it, then click on the XML Source tab. This will take you to the first line in the XML code that defines the field. Then all you need to do is insert:
    &#xD;
    wherever you want a carriage return. This will also overwrite the value when data is typed into the form and saved. FYI, the reason your values aren't kept when you script in the default value is that the script is still in the form when you save it, so re-opening the form simply resets the default value to the script.

  • Ttunes 12.0.1 line breaks

    Hi all,
      It is very important that I be able to insert line breaks in the comments section of a file in iTunes. To be specific I mean when you right click a file in iTunes and click on "Get Info" it brings up a box where you can enter id3 data about a song (Title, Artist, Album, Track Number, Comments, etc). Well, in the "Comments" section of that "Get Info" box, I need to add line breaks. This was acheivable in all other versions of iTunes by using "ctrl + Enter" (PC) or "alt+Shift+Enter" (Mac). However on the new version of iTunes 12.0.1 these methods of entering a line break do not work. Does anyone have a solution to this? Any help would be greatly appreciated.
    Thanks,

    Just discovered that in Windows you can hold down shift while using right-click > Get Info (or File > Get Info) to get the old style dialog box. (It's alt on a Mac.)
    Again clunky but probably easier than my script.
    tt2

  • Replacing hyphen with line break

    Hi,
    In my application I want to replace the hyphen with line break
    . I am using APEX4.0
    I am using the following javascript code:
    <html>
    <script type="text/javascript">
    function test()
    var visitorName = "<br/>";
    var myOldString = "&P2_SI.";
    var myNewString = myOldString.replace(/-/g, visitorName);
    </script>
    </html>
    I have no clue how to get it executed and make the javascript work.... can someone help?

    My application is a online test.. One of the question in Page 3 is to re-arrange the sentence that is in the form of bullets. In the text area, as there are no formatting the candidate just gives hyphen - and enters all the sentences.. so in the DB the values are saved in the single line and when we evaluate the paper, it looks odd. So we want to replace the hyphen with the line break
    , so that when evaluating the paper, the format looks good, enter of one sentence there will be a line break.
    After the candidate is done with the Page 3, clickig next button, saves the values to the DB, and the page (branching) goes to Page 4 and clicking the Previous button takes the candidate to Page 2 (branching).
    The Dynamic Action is created in the following order
    -Advanced
    -action name
    -Event ->Change
    Selection Type->Item(s)
    Item(s)->P3_S2I
    Condition-> No condition
    -Action->Execute Javscriot code
    Disabled Fire on Page Load (as the code should execure only after the candidate type something in P3_S2I text area or after the Next button is clicked.
    Code:
    <script type="text/javascript">
    var special = "<br/>";
    var myOldString = "&P3_S2I.";
    var myNewString = myOldString.replace(/-/g, special);
    document.write("<br /> " + myNewString);
    </script>
    -Selection Type -> Item(s)
    Item - P3_S2I
    -Click Create
    This time I was taken to the next page.... but at the DB level hyphen is not replaced by the line break

Maybe you are looking for

  • IPod Touch NOT recognized in iTunes : HELP NEEDED

    My Ipod Touch is NOT being recognized by itunes. -Ipod Touch 3g with 4.3 software -iTunes 10.2 -PC: HP Pavilion Dv6. -OS: Windows 7 64-bit [Eng] Ok so... I previously kept my ipod touch version as 3.1.3, and only used itunes 9.2 because I tried using

  • Are there any current widespread outstanding issues for the iPod touch 3G?

    I'm upgrading from a first-gen iPod touch because despite my whole-hearted love for it, its slighter faults like relatively short battery life and limited space, not to mention the fact that it recently likes borking all my headphones, have led me to

  • How to create web hosting infrastructure

    I am fairly new to MS Azure Services and would like to create my own web hosting services. My current site is "shah63.com", but i want to setup infrastructure that would allow me to add more sites by pointing domain to ns1.shah63.com and ns2.shah63.c

  • HT1338 how can I upgrade my Logic Pro 6

    I bought the Logic 6 years ago, how can I upgrade this now? robert

  • Populating a JMS queue

    Dear All I need to test my JMS scenario. In real time the JMS queue will be populated by an external system. For testing purpose how can I populate the queue? Is there anyway other than doing a file to JMS scenario to populate the same. Thanks Sourab