Adobe CS5 中不支持的语言的连字符

发布于 2024-11-02 05:52:49 字数 535 浏览 4 评论 0原文

我在 Mac OS 上使用 Adobe InDesign CS4 和 CS5。

我从未在 Mac OS 上为 Adob​​e InDesign 编写过任何类型的插件,我需要帮助来考虑此类问题的最佳解决方案。

该语言是亚美尼亚语,Adobe 不支持该语言。我很乐意拥有任何类型的脚本,它可以在调整大小后自动连接文本框中的文本。

我读过有关 Javascript(或 ExtendScript)、语言库插件 SDKAppleScript 的内容,但我无法考虑哪一种是实现这一目标的最简单(或最好)的方法。

我应该用什么?

非常感谢任何帮助。

更新:

它可以是 Adob​​e 不支持的任何其他语言。

我只需要找出应该使用哪个 API 或哪种脚本语言,也许还需要一些其他实现连字符的指南。

I'm using Adobe InDesign CS4 and CS5 on Mac OS.

I've never written any kind of plugin for Adobe InDesign on Mac OS and I need help to consider what's the best solution for this kind of problem.

The language is Armenian and it's not supported in Adobe. I'd be happy to have any kind of script, that would automatically hyphenate text in a textbox after a resize.

I've read about Javascript (or ExtendScript), Linguistic Library Plug-ins SDK and AppleScript, but I can't consider which one is the simplest(or the best) way to achieve this.

What should I use?

Any help is much appreciated.

UPDATE:

It can be any other language, that isn't supported in Adobe.

I just need to find out which API should I use or which scripting language and maybe some other guides for implementing hyphenation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

荒人说梦 2024-11-09 05:52:49

快速阅读后,听起来 Adob​​e希望您使用 Lilo(语言库)。

语言学
图书馆可以添加拼写检查和连字符等语言服务
通过语言库 API 向 Adob​​e 产品提供服务。

听起来不错...但是用于创建这些插件的语言是 C++。在我看来,C++ 是一种令人讨厌的语言,应该尽可能避免,但如果您喜欢 C++,那么您很幸运!

ExtendScript 是用于制作通用 Adob​​e 插件(如 Kuler)的语言,类似于 JavaScript。这可能是一种更简单的语言选择,但可能意味着更多的工作。

以下是我对这些选择的利弊的看法。

Lilo

优点

  1. 专为连字符和语言支持而
  2. 设计 可在 Illustrator、Photoshop 和 InDesign 中使用

缺点

  1. 用 C++ 编写(这意味着您需要设置环境来编译 C++代码)
    2 用 C++(实际上不是脚本语言)编写

ExtendScript

优点

  1. Javascript 是一种非常灵活的语言,非常适合脚本编写
  2. 有很多关于 ExtendScript

缺点

  1. 在线帮助这是违背常理的 您最终将创建某种读取文本框并查找要连字符的内容的 hack。这也意味着要编写 Adob​​e 已经编写并封装到 Lilo 中的更复杂的逻辑。

如果我必须做出决定,我会选择 Lilo。我不喜欢 C++,但我也不想编写自己的连字符代码。似乎使用 Lilo,您所要做的就是创建一本亚美尼亚语单词及其连字符的字典。

我确信您已经找到了这个,但链接到 Lilo 编程指南似乎很重要。
http ://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/linguisticlibrary/pdfs/lilo-programming-guide.pdf

After doing some quick reading, it sounds like Adobe wants you to use Lilo (Linguistic Library).

Linguistic
Library makes it possible to add linguistic services like spell checkers and hyphenation
services to Adobe products, through the Linguistic Library API.

Sounds great... but the language used to create these plugins is C++. In my opinion, C++ is an annoying language that should be avoided when possible, but if you like C++ then you're in luck!

ExtendScript, the language used to make general Adobe plugins (think Kuler) is like JavaScript. This may be a simpler language choice, but it could mean more work.

Here are my thoughts on the pros and cons of the choices.

Lilo

Pros

  1. Specifically made for hyphenation and language support
  2. Works in Illustrator, Photoshop, and InDesign

Cons

  1. Written in C++ (which means you will need to set up for environment to compile C++ via XCode)
    2 Written in C++ (which really isn't a scripting language)

ExtendScript

Pros

  1. Javascript is a very flexible language that is very suitable for scripting
  2. There is a lot more help online for ExtendScript

Cons

  1. This is going against the grain. You will end up creating somewhat of a hack that reads textboxes and looks for things to hyphenate. This also means writing more complicated logic that Adobe already wrote and wrapped into Lilo

If I had to make a decision, I would choose Lilo. I don't like C++, but I don't want to write my own hyphenation code. It seems like with Lilo, all you have to do is create a dictionary of Armenian words and their hyphenation points.

I'm sure you found this already, but it seems important to link to the Lilo programming guide.
http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/linguisticlibrary/pdfs/lilo-programming-guide.pdf

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文