Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

blanka

macrumors 68000
Original poster
Jul 30, 2012
1,551
4
I have a massive amount of UTF-8 text to layout with many Japanese terms inline. The font to use is a modern typestyle with limited characterset (ASCII+). If you import this text in InDesign, all the Japanese shows as pink boxes.

Now I need any of the following 2 solutions:

1) A way to select all "Pink boxes" and turn them into Characterstyle X. That way I can set Characterstyle X to font "Osaka" the giant OSX font that includes all characters.
2) A way to feed InDesign makeup-markers in plain text that get converted to the appropriate styles in InDesign? All text is inside a MySQL database, and it is easy to let PHP catch the Japanese characters and wrap them in markings. Say [style="osaka"]にほんご、にっぽんご[/style].

Why can't you just specify a backup-font in InDesign? That would make things a lot easier. All browsers work like that already.
 

jamietshaw

macrumors regular
Sep 25, 2009
106
31
UK
You can use the Grep section of Find/Change to do this.

First, identify the first and last Unicode code for the range characters you want to find, e.g. in the screenshot I have 0B05 selected in the OS X Character Viewer.

In Find/Change, Grep tab, search for: [\x{0B05}-\x{0D14}] where the codes in the braces are the codes you've found.

Set the change format to your character style.


Your other suggestion, of importing text into InDesign, would also work. Try exporting some text from InDesign if you want to see how the tagging works.

InDesign doesn't use a default font because it doesn't try to be clever and do things for you.
 

Attachments

  • Screen Shot 2012-11-22 at 20.52.45.png
    Screen Shot 2012-11-22 at 20.52.45.png
    144.9 KB · Views: 105
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.