Giter Site home page Giter Site logo

suhaibmjmc / indesignfontconverters Goto Github PK

View Code? Open in Web Editor NEW

This project forked from assistech-iitdelhi/indesignfontconverters

0.0 0.0 0.0 1.78 MB

Font conversion scripts for InDesign files

License: GNU General Public License v3.0

JavaScript 100.00%

indesignfontconverters's Introduction

Convert Non-Unicode Text to Unicode within InDesign

video demo of conversion in InDesign

USAGE

  1. Extract the FontConverters folder from the latest release into the Scripts Panel directory. On Win 7 it is here: :\Users<username>\AppData\Roaming\Adobe\InDesign\Version 8.0\en_US\Scripts\Scripts Panel
  2. Run FontConverter.jsx from InDesign > Window -> Utilities > Scripts

USAGE FOR MULTIPLE FILES

  1. Export PageMaker files, if any, to InDesign using Kasyan Servetsky's PMDImporter.jsx (works only in CS6 or earlier)
  2. Download the repository and copy Kasyan Servetsky's Batch processor - 2.2.jsx and PMD Importer.jsx to the User Scripts Panel directory of InDesign.
  3. Copy the FontConverters folder to a locally available shared folder (eg. Dropbox). This helps in delivering fixes quickly as and when conversion errors are reported and fixed.
  4. Open an InDesign file and run the batch script by double clicking on Window > Utilities > Scripts > User > Batch Processor - 2.2.jsx . The dialog prompt takes two paths as input - the path of a script to run and the path to InDesign files to run the script on. For the first, specify the path to FontConverter.jsx from the previous step. For the second specify the path of InDesign files.

FILES

Batch processor - 2.2.jsx

Kasyan Servetsky's script for running any non interactive script in batch mode on one or more InDesign files.

PMD Importer.jsx

Kasyan Servetsky's script for importing PMD files into InDesign.

Converters\fonts.tsv

This file specifies mapping between source and target font names and styles. Along with each entry it contains the scaling factor and the name of the file containing mappings from bytecodes to Unicode.

Source to Target Mapping File Name Source Font Name Source Font Style Target font name Target font style Scaling factor (not used)
walkman.tsv Walkman-Chanakya-905 Bold Smart Delhi Hindi Bold 1.0
walkman.tsv Walkman-Chanakya-901 Bold Smart Delhi Hindi Bold 1.0
rupee.tsv Rupee Regular Smart Delhi Hindi Bold 1.0
rupee.tsv Rupee Italic Smart Delhi Hindi Bold 1.0
kruti.tsv Kruti Dev 030 Normal Smart Delhi Hindi Normal 1.0

Converters\*.tsv

Each file contains mappings from bytecodes to Unicode for a specific font.

#	रु
%	
&	-
&	µ
'	श्
'k	

FontConverter.jsx

This script loads the fonts.tsv file and applicable mapping files and does the following:-

foreach applicable source to target font mapping
    foreach byte sequence to unicode mapping
        find source byte sequence in the applicable source font name and style
        replace with target unicode in the applicable target font name and style

reorder characters such as ि to bring them to their correct positions

AUTHORS

Sankalan Pal Chowdhury et al.

MENTORS

  1. Mr. Dipendra Manocha, Saksham
  2. Prof. M. Balakrishnan, IIT-D
  3. Akashdeep Bansal, Research Scholar (PhD), IIT-D

THANKS

  1. वैज्ञानिक एवं तकनीकी हिन्दी समूह for converters
  2. Josh Voigts for suggesting fixes for unconverted portions on SO here and here
  3. Kasyan Servetsky for the batch processor. Get latest versions here and here
  4. Mr. Sridhar Madurai of Smart Solutions, for suggestions for improvements
  5. CIET Team for using the scripts.

RESOURCES

  1. Scripting InDesign
  2. InDesign Object Model
  3. Adobe InDesign CS6 Object Model
  4. ScriptUI for Dummies
  5. Javascript Tools Guide
  6. Scientific and Technical Hindi
  7. Adobe InDesign CS6 Classroom in a Book
  8. InDesign Tutorials

indesignfontconverters's People

Contributors

prakhariitd avatar akashdeepbansal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.