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

MT-Script for InDesign - How can I use Unicode in Find/Change?

Community Beginner ,
Mar 06, 2018 Mar 06, 2018

Hi,

I'm trying to change the whitespace and replacement character (black diamond with a white question mark �) to other characters on Find/Change - MT-SCRIPT.

Is there any way to do this? I've tried to put between "<>", "%%" or "$$".. But it didn't work.

(U+0020) - Space

(U+FFFD) - Replacement

Thank you!

findchange.PNG

1.4K
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

Community Beginner , Mar 08, 2018 Mar 08, 2018

Hey, i have an answer.

Hello Bruno,

Thank you for your email.

MathType doesn't support unicode. It uses default or user created encoding table to match special characters to ASCII code. As the result your national (for example) character may have different code in equation depending on your encoding. My find-change script just read these code and change to another. It doesn't know about all encodings of MathType. It can work only with ASCII characters plus math symbols which have default encoding e

...
Translate
Community Expert ,
Mar 06, 2018 Mar 06, 2018

Hi Bruno,

will MT-Find-Change work with GREP expressions?

Then you could try GREP syntax like:

\x{0020}

EDIT: Why not using InDesign's GREP Find/Change ?

Regards,
Uwe

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 ,
Mar 06, 2018 Mar 06, 2018

Uh, good try!

But unfortunately it didn't work
I don't use GREP because I'm editing a MathType equation, this is the function of this script / plugin.

I've sent an email to the developer and I'm waiting for the response ...

Anyway, thanks!

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 Expert ,
Mar 06, 2018 Mar 06, 2018

Hi Bruno,

thank you for clarification. Missed that MT might mean MathType.


Come back if the developer responded.
It might be useful for other MathType users.

Thanks,

Uwe

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 ,
Mar 08, 2018 Mar 08, 2018
LATEST

Hey, i have an answer.

Hello Bruno,

Thank you for your email.

MathType doesn't support unicode. It uses default or user created encoding table to match special characters to ASCII code. As the result your national (for example) character may have different code in equation depending on your encoding. My find-change script just read these code and change to another. It doesn't know about all encodings of MathType. It can work only with ASCII characters plus math symbols which have default encoding embeded in MathType.

About this character -  �

This is so called replacement character.

All cyrillic charactes (for example) are changed into this character in all equations exported to EPS or WMF (are changed BY MATHTYPE).

The right way to overcome this substitution is to use custom encoding for cyrillic characters. This is special file where it is written a position of each using character in correspondence with default MathType code table.

Yes, it is possible to peep the code of  � in default MathType code table and write it in Symbols table of MT-Script.

But are you sure that (for example) character � on page 9 and character � on page 10 corresponts to the same needed character?

Thank you,

Vladislav

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