Computing Bézier curves that really look like sine waves is an exciting challenge for script developers. One needs to deal with both optimizing control points, transforming coordinate spaces and splitting curves. Here is a function that solves it all in ExtendScript for InDesign…
De la migration typographique des appels de note [MÀJ]
March 20, 2021 | Snippets | fr
Affairé à délester mes répertoires de vieux scripts InDesign antédiluviens, je tombe sur un petit utilitaire qui me semble encore digne d'emploi chez les orthotypographes. Sa mission ? Repositionner les appels de note avant toute ponctuation fermante, comme l'exige la tradition…
ScriptUI vs. UI Scaling
March 08, 2021 | Tips | en
From CC 2014, InDesign and Illustrator interfaces needed to adapt to OS “scale settings” strategy on 4K/Retina displays. And with Windows 10 defaultly scaling at 150% in such resolutions, Adobe engineers were forced to rework their famous HiDPI support, which led to introduce UI Scaling in the Preferences dialog box. So far, so good. But ScriptUI has not been fully “informed” of these new rules…
† Theunis de Jong (1966–2020)
December 05, 2020 | Extras | en | fr
Better known under his nickname “Jongware”, my colleague and friend Theunis de Jong died on November 28 at the age of 54. The InDesign community loses one of its brightest stars, indisputably the most prolific “problem solver” in the scripting realm during the last twenty years. (Tribute)
Understanding the `count( )` Method
November 13, 2020 | Tips | en
InDesign's scripting infrastructure is based on DOM objects (Document
, Story
, Paragraph
…) and any such object has an associated collection (Documents
, Stories
, Paragraphs
…). Collections typically arise in complex specifiers like myDocument.stories.everyItem().words
. They also provide two essential members, the length
property and the count()
method. How do they differ?
The Tricky Side of `string.replace( )` in ExtendScript
September 14, 2020 | Tips | en
When you invoke myString.replace(...)
in pure JavaScript, the “string being examined” is and remains myString during the whole operation. ExtendScript offers a slightly different mechanism that may unexpectedly alter the output string…
SmartSort 1.05 | New Design, New Options
August 13, 2020 | Snippets | en
Many thanks to Peter Kahrel for his valuable suggestions and samples regarding word-by-word and letter-by-letter systems. SmartSort 1.05 is out in a fresh skin with more detailed—and relevant—options. (To upgrade from the beta release, quit InDesign, replace the old SmartSort.jsx
file and restart the application.)
GREP et InDesign, deuxième édition
June 26, 2020 | Extras | fr
Bref billet pour aviser nos lecteurs de la nouvelle édition du guide de référence GREP et InDesign de Laurent Tournier. Hébergée par indigrep.com et délivrée au format PDF pour la (trop) modique somme de 10 €, cette nouvelle mouture répond aux requêtes de mise à jour qui n'en finissaient plus de submerger l'auteur. Il faut dire que l'édition inaugurale (publiée à l'époque chez Dunod) datait de… 2009 ! On imagine qu'en onze ans pas mal de nouveautés et de subtilités se sont insinuées dans le moteur d'expressions régulières d'InDesign. Ce nouveau volume, intelligemment retravaillé sur le fond et sur la forme, devrait combler les insatiables du GREP pour la décennie à venir…
Why You Should Never Use `x==null` in ExtendScript
May 13, 2020 | Tips | en
The Japanese scripter あるふぁ found a bug affecting any ExtendScript code based on ...==null
. This is not a critical issue (because experienced developers never use such condition!) but the case provides the opportunity to summarize important rules regarding falsey values and the equality operator…
Échantillonnez vos glyphes avec DeliverGlyphs
April 17, 2020 | Extras | fr
Jean loup Fusz vient de mettre en ligne DeliverGlyphs, un script InDesign qui produit instantanément, dans un intervalle donné, le jeu de glyphes de la police courante. Simple, propre, efficace.
InstantUnicode | Insert Characters by Typing their Codepoint
March 12, 2020 | Snippets | en | fr
Many fonts offer a wide range of Unicode characters. Does your text require a 'Ű'? Minion Pro has it. Go to U+0170 LATIN CAPITAL LETTER U WITH DOUBLE ACUTE
. Or do you need an umbrella glyph? Segoe UI Emoji supports U+2602
… Of course you can access any element from the Glyphs panel, but when you already know the codepoint to be rendered, why not just ask InDesign to parse the code you've just entered?…
IndexMatic | Dealing with Homonyms
December 06, 2019 | IndexMatic | en | fr
Whichever tool you use to generate an index from your InDesign document, handling homonyms remains a delicate problem. Only humans—or at least smart algorithms—can determine which index entry should be associated to an ambiguous expression. Let's summarize some strategies or workarounds that IndexMatic supports…
« previous entries - Page 1 of 10