Comments (11)
Hi Daniel,
I'm actually planning a new version of the script that will allow you to assign various OpenType features that are not available through InDesign's UI – including hlig and Character Variants.
Since these are not accessible via the UI, would it be helpful to mark the affected text passages? Do you assign them to the whole text or only to some selected characters?
I can add Spanish to the dialogs (English, German, French), if you consider it useful.
Yes, for sure. That would be helpful. I will add the machine translated texts for Spanish in the next version. If you then take a look at it, that would be great.
Roland
from open-type-features.
Hi, Roland:
Thank you. These are very specific variants for a particular font (Junicode Two Beta) and combination of letters.
1. hlig + character-variant cv83 2: The combination of q́ꝫ produces:
2. hlig + character-variant cv84 2: This modifies accents in vowels, creating a half-macron + half breve:
Regarding Spanish, great! Let me know when you're ready.
Best,
Daniel
from open-type-features.
Hi Daniel,
do you want to make a first test run with the script? You can find the new version in the branch "Develop" and I also attach it here:
Extended Tab
There are now two new tabs. If you click on »Extended features/Funcionalidad extendida« you can apply all kind of OpenType features.
In the lower part of the tab is a filter to limit the features. Multiple tags are separated by spaces, so in your case hlig cv84
.
By double-clicking on the entry in the list you can change the value, e.g. from 1
to 2
.
Assign the value
Select the desired text. Then mark one or more features in the list on the left and click on the button »Assign/Aplique«.
Remove features
With the button »Clear/Borrar« the features can be removed from the selected text.
If you have any questions, please just let me know.
Translation
If you notice any wrong or weird translations, feel free to correct them directly in the script. (They are at the very end of the script code, starting at line 5141) and reattach the corrected version here. Or alternatively, fix it directly via Github or let me know about. Thanks!
Roland
from open-type-features.
Hi, Roland
Sorry for not replying sooner. I tried the new script but it didn't apply the combination of hlig + cv84 2.
Very kind regards,
Daniel
from open-type-features.
Hi Daniel,
what exactly is not working? Can you describe the issue in more detail? Is there no assignment of these features to the corresponding text? Or does the font not show the desired change after the assignment?
Can you post a screenshot here after applying it through the script?
I tested it with the font Junicode Two Beta, here is my result:
Roland
from open-type-features.
Hi, Roland:
I didn't have the time to test it thoroughly before but now I made it work for (two characters with) hlig + cv84 2!
Here are the screenshots:
Before:
I'll post another for (three characters with) hlig + cv83 2, as this is still giving me problems.
All the very best,
Daniel
from open-type-features.
The tricky part is combining three characters with hlig + cv83 2.
This is what the CSS + HTML code looks like for the characters q + accent + ꝫ (& #113;& #769;& #42859; without the spaces):
.character-variant83 {
font-family: 'JunicodeTwoBeta-Regular';
font-variant-ligatures: character-variant;
font-size: 100px;
color: #000000;
-moz-font-feature-settings: 'cv83' 2, 'hlig';
-webkit-font-feature-settings: 'cv83' 2, 'hlig';
-ms-font-feature-settings: 'cv83' 2, 'hlig';
font-feature-settings: 'cv83' 2, 'hlig';
}
Class character-variant cv83 2 for q́ꝫ:
q́ꝫ
As the accent goes in the middle, the transformation does not complete. If I only apply hlig + cv83 2 to qꝫ (without the accent, or moving the accent before q), I get this:
All the very best,
Daniel
from open-type-features.
Hi Daniel,
i also get it only with the accent before the q and a negative kerning.
Maybe a problem with the programming of the font? Or InDesign can't handle it? But unfortunately I can't do anything with scripting in that case I think. I just apply the property with the script to the text.
Roland
from open-type-features.
That was a great suggestion! I gave negative kerning to the accent and it looks great!
I'll look into the Spanish translation now and provide the files as soon as I have them ready.
All the very best,
Daniel
from open-type-features.
openTypeFeatures_es.jsx.zip
Hi, Roland:
I have attached the file with the Spanish translation, following the InDesign wording as closely as possible.
Feel free to contact me if you have any questions or remarks.
Very kind regards,
Daniel
from open-type-features.
Thanks for the translations Daniel, that's awesome, I will add/merge them this weekend.
Best regards
Roland
from open-type-features.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-type-features.