Skip to content

Commit

Permalink
Added createTextParallelToPathSegment.js, Updated addNumericSeparator…
Browse files Browse the repository at this point in the history
…s.js, createThreadedText.js, splitText.js
  • Loading branch information
sky-chaser-high committed Apr 29, 2024
1 parent e64e05f commit d01fed8
Show file tree
Hide file tree
Showing 18 changed files with 1,955 additions and 423 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@


## addNumericSeparators.js
### 1.2.0 (2024-04-29)
### Added
- Added the ability to add commas only to text within a selection.
### 1.1.0 (2022-11-13)
### Added
- Modified to run the script in the text editing state.
Expand Down Expand Up @@ -88,6 +91,15 @@
<br><br>


## createThreadedText.js
### 1.1.0 (2024-04-29)
### Added
- Added corresponding ruler units.
### Changes
- Updated the UI.
<br><br>


## cutLine(emptySelection).js
### 1.0.1 (2022-10-28)
### Bug Fixes
Expand Down Expand Up @@ -345,6 +357,17 @@
<br><br>


## splitText.js
### 1.1.0 (2024-04-29)
### Added
- Area types are now supported. After splitting, convert to point types.
### Changes
- Changed algorithm for splitting text.
### Bug Fixes
- Fixed a bug that prevented whitespace characters from being removed.
<br><br>


## stepAndRepeat.js
### 2.0.1 (2023-05-14)
### Bug Fixes
Expand Down
59 changes: 45 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ If you find a script that interests you, please download it from [![Download](ht
- [Add Anchor Points](#addAnchorPointsjs)
- [Align in Center of Space (Horizontal)](#alignInCenterOfSpaceHorizontaljsalignInCenterOfSpaceVerticaljs)
- [Align in Center of Space (Vertical)](#alignInCenterOfSpaceHorizontaljsalignInCenterOfSpaceVerticaljs)
- [Align Objects](#alignObjectsjs) `New`
- [Align Objects](#alignObjectsjs)
- [Close Path](#closePathjs)
- [Convert All Anchor Points to Corner](#convertAllAnchorPointsToCornerjs)
- [Create Grid Lines](#createGridLinesjs)
Expand All @@ -76,7 +76,7 @@ If you find a script that interests you, please download it from [![Download](ht
- [Increase Selected Anchor Points Clockwise](#increaseSelectedAnchorPointsCWjsincreaseSelectedAnchorPointsCCWjs)
- [Increase Selected Anchor Points Counterclockwise](#increaseSelectedAnchorPointsCWjsincreaseSelectedAnchorPointsCCWjs)
- [Move Guides](#moveGuidesjs)
- [Rearrange Objects](#rearrangeObjectsjs) `New`
- [Rearrange Objects](#rearrangeObjectsjs)
- [Remove Color in Guide Object](#removeColorInGuideObjectjs)
- [Select Guides](#selectGuidesjs)
- [Shift Selected Anchor Points Clockwise](#shiftSelectedAnchorPointsCWjsshiftSelectedAnchorPointsCCWjs)
Expand All @@ -87,13 +87,14 @@ If you find a script that interests you, please download it from [![Download](ht

### Text
[![Download Text.zip](https://img.shields.io/badge/Download-Text.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Text.zip)
- [Add Numeric Separators](#addNumericSeparatorsjs)
- [Add Numeric Separators](#addNumericSeparatorsjs) `Update`
- [Convert Type on a Path to Point Type](#convertTypeOnAPathToPointTypejs)
- [Copy Line Down](#copyLineDownjscopyLineUpjs)
- [Copy Line Up](#copyLineDownjscopyLineUpjs)
- [Copy Line (empty selection)](#copyLineEmptySelectionjscutLineEmptySelectionjs)
- [Create Page Numbers](#createPageNumbersjs)
- [Create Threaded Text](#createThreadedTextjs)
- [Create Text Parallel to Path Segment](#createTextParallelToPathSegmentjs) `New`
- [Create Threaded Text](#createThreadedTextjs) `Update`
- [Cut Line (empty selection)](#copyLineEmptySelectionjscutLineEmptySelectionjs)
- [Delete All Left](#deleteAllLeftjsdeleteAllRightjs)
- [Delete All Right](#deleteAllLeftjsdeleteAllRightjs)
Expand All @@ -109,7 +110,7 @@ If you find a script that interests you, please download it from [![Download](ht
- [Move Line Down](#moveLineDownjsmoveLineUpjs)
- [Move Line Up](#moveLineDownjsmoveLineUpjs)
- [Sort Lines](#sortLinesjs) `New`
- [Split Text](#splitTextjs)
- [Split Text](#splitTextjs) `Update`
- [Split Text at Cursor Position](#splitTextAtCursorPositionjs)
- [Swap Text Contents](#swapTextContentsjs)
- [Text Align Center](#textAlign_CenterjstextAlign_LeftjstextAlign_Rightjs)
Expand All @@ -130,10 +131,10 @@ If you find a script that interests you, please download it from [![Download](ht
### View
[![Download View.zip](https://img.shields.io/badge/Download-View.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/View.zip)
- [Arrange Windows](#arrangeWindowsjs)
- [Navigate to First Artboard](#navigateToFirstArtboardjsnavigateToLastArtboardjsnavigateToNextArtboardjsnavigateToPreviousArtboardjs) `New`
- [Navigate to Last Artboard](#navigateToFirstArtboardjsnavigateToLastArtboardjsnavigateToNextArtboardjsnavigateToPreviousArtboardjs) `New`
- [Navigate to Next Artboard](#navigateToFirstArtboardjsnavigateToLastArtboardjsnavigateToNextArtboardjsnavigateToPreviousArtboardjs) `New`
- [Navigate to Previous Artboard](#navigateToFirstArtboardjsnavigateToLastArtboardjsnavigateToNextArtboardjsnavigateToPreviousArtboardjs) `New`
- [Navigate to First Artboard](#navigateToFirstArtboardjsnavigateToLastArtboardjsnavigateToNextArtboardjsnavigateToPreviousArtboardjs)
- [Navigate to Last Artboard](#navigateToFirstArtboardjsnavigateToLastArtboardjsnavigateToNextArtboardjsnavigateToPreviousArtboardjs)
- [Navigate to Next Artboard](#navigateToFirstArtboardjsnavigateToLastArtboardjsnavigateToNextArtboardjsnavigateToPreviousArtboardjs)
- [Navigate to Previous Artboard](#navigateToFirstArtboardjsnavigateToLastArtboardjsnavigateToNextArtboardjsnavigateToPreviousArtboardjs)
- [Sync View](#syncViewjs)
<br><br><br>

Expand Down Expand Up @@ -205,8 +206,7 @@ This script changes a number to a 3-digit comma delimited string.
![Add Numeric Separators](images/addNumericSeparators.png)

### Usage
Select the text objects, and run this script.
Or, run this script in the text editing state.
Select text objects or specify a text range in an editing state, and run this script.

### Requirements
Illustrator CS or higher
Expand Down Expand Up @@ -646,6 +646,37 @@ Illustrator CS4 or higher



# <a name="createTextParallelToPathSegmentjs">createTextParallelToPathSegment.js</a>
[![Download Text.zip](https://img.shields.io/badge/Download-Text.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Text.zip)
This script creates a text parallel to a straight segment or a line connecting two anchor points.

![Create Text Parallel to Path Segment](images/createTextParallelToPathSegment.png)

### Usage
1. Select two anchor points with the Direct Selection Tool, and run this script.
2. Enter any text. The default values are the distance and angle between two points.
3. Select either Point Type or Area Type.
`Point Type` Select left, center, or right align.
`Area Type` Enter area width and height values.
4. Check the Flip checkbox reverses the drawing position.
5. Check the Middle checkbox to draw in the middle of the line.
6. Enter a value of the margin will space them from the line.

> [!NOTE]
> Anchor points for type on a path and area type are supported.
> Curves are not supported.
> The units of the width, height and margin value depend on the ruler units.
### Requirements
Illustrator 2021 or higher

<div align="right">[ <a href="#text">↑ Back to Top ↑</a> ]</div>
<br>





# <a name="createThreadedTextjs">createThreadedText.js</a>
[![Download Text.zip](https://img.shields.io/badge/Download-Text.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Text.zip)
This script creates a threaded text. It can also be made from a mixture of point types and path objects.
Expand Down Expand Up @@ -2121,16 +2152,16 @@ Illustrator CS4 or higher

# <a name="splitTextjs">splitText.js</a>
[![Download Text.zip](https://img.shields.io/badge/Download-Text.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Text.zip)
This script splits a point text by lines, words, or characters. The vertical text is also supported.
This script splits a text by lines, words, or characters. The vertical text is also supported.

![Split Text](images/splitText.png)

### Usage
1. Select any point text objects, and run this script.
1. Select any text objects, and run this script.
2. Select lines, words, or characters.

> [!NOTE]
> Area types are not supported.
> Area types converts to point types.
> If there are many characters, it will take time to split them.
> After splitting, the text position may move slightly.
Expand Down
66 changes: 50 additions & 16 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ Adobe Illustratorのスクリプト集です。
- [**アンカーポイントに図形を描く**](#アンカーポイントに図形を描く) drawShapeOnAnchorPoint.js
- [**アンカーポイントの追加**](#アンカーポイントの追加) addAnchorPoints.js
- [**オブジェクトの周囲に長方形を描く**](#オブジェクトの周囲に長方形を描く) drawRectangle.js
- [**オブジェクトの整列**](#オブジェクトの整列) alignObjects.js `New`
- [**オブジェクトの並べ替え**](#オブジェクトの並べ替え) rearrangeObjects.js `New`
- [**オブジェクトの整列**](#オブジェクトの整列) alignObjects.js
- [**オブジェクトの並べ替え**](#オブジェクトの並べ替え) rearrangeObjects.js
- [**オブジェクトをシャッフル**](#オブジェクトをシャッフル) shuffleObjects.js
- [**外接円を描く**](#外接円を描く) drawCircumscribedCircle.js
- [**ガイドオブジェクトの色を削除**](#ガイドオブジェクトの色を削除) removeColorInGuideObject.js
Expand Down Expand Up @@ -99,10 +99,11 @@ Adobe Illustratorのスクリプト集です。
- [**行を下へコピー**](#行を上へコピー行を下へコピー) copyLineDown.js
- [**行を上に挿入**](#行を上に挿入行を下に挿入) insertLineAbove.js
- [**行を下に挿入**](#行を上に挿入行を下に挿入) insertLineBelow.js
- [**数字をカンマで区切る**](#数字をカンマで区切る) addNumericSeparators.js
- [**スレッドテキストを作成**](#スレッドテキストを作成) createThreadedText.js
- [**数字をカンマで区切る**](#数字をカンマで区切る) addNumericSeparators.js `Update`
- [**スレッドテキストを作成**](#スレッドテキストを作成) createThreadedText.js `Update`
- [**選択なしでカット**](#選択なしでカット選択なしでコピー) cutLine(emptySelection).js
- [**選択なしでコピー**](#選択なしでカット選択なしでコピー) copyLine(emptySelection).js
- [**直線に平行なテキストを作成**](#直線に平行なテキストを作成) createTextParallelToPathSegment.js `New`
- [**テキスト中央揃え**](#テキスト中央揃えテキスト左揃えテキスト右揃え) textAlign_Center.js
- [**テキスト左揃え**](#テキスト中央揃えテキスト左揃えテキスト右揃え) textAlign_Left.js
- [**テキスト右揃え**](#テキスト中央揃えテキスト左揃えテキスト右揃え) textAlign_Right.js
Expand All @@ -112,7 +113,7 @@ Adobe Illustratorのスクリプト集です。
- [**文字列を括弧で囲む**](#文字列を括弧で囲む) encloseWordInParentheses.js
- [**文字列をカーソルの位置で分割**](#文字列をカーソルの位置で分割) splitTextAtCursorPosition.js
- [**文字列を交換**](#文字列を交換) swapTextContents.js
- [**文字列を分割**](#文字列を分割) splitText.js
- [**文字列を分割**](#文字列を分割) splitText.js `Update`

### ユーティリティ
[![Download Utility.zip](https://img.shields.io/badge/Download-Utility.zip-e60012?style=for-the-badge)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Utility.zip)
Expand All @@ -129,10 +130,10 @@ Adobe Illustratorのスクリプト集です。
[![Download View.zip](https://img.shields.io/badge/Download-View.zip-e60012?style=for-the-badge)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/View.zip)
- [**ウィンドウの表示位置を同期**](#ウィンドウの表示位置を同期) syncView.js
- [**ウィンドウを並べて表示**](#ウィンドウを並べて表示) arrangeWindows.js
- [**最後のアートボードへ移動**](#最後のアートボードへ移動先頭のアートボードへ移動次のアートボードへ移動前のアートボードへ移動) navigateToLastArtboard.js `New`
- [**先頭のアートボードへ移動**](#最後のアートボードへ移動先頭のアートボードへ移動次のアートボードへ移動前のアートボードへ移動) navigateToFirstArtboard.js `New`
- [**次のアートボードへ移動**](#最後のアートボードへ移動先頭のアートボードへ移動次のアートボードへ移動前のアートボードへ移動) navigateToNextArtboard.js `New`
- [**前のアートボードへ移動**](#最後のアートボードへ移動先頭のアートボードへ移動次のアートボードへ移動前のアートボードへ移動) navigateToPreviousArtboard.js `New`
- [**最後のアートボードへ移動**](#最後のアートボードへ移動先頭のアートボードへ移動次のアートボードへ移動前のアートボードへ移動) navigateToLastArtboard.js
- [**先頭のアートボードへ移動**](#最後のアートボードへ移動先頭のアートボードへ移動次のアートボードへ移動前のアートボードへ移動) navigateToFirstArtboard.js
- [**次のアートボードへ移動**](#最後のアートボードへ移動先頭のアートボードへ移動次のアートボードへ移動前のアートボードへ移動) navigateToNextArtboard.js
- [**前のアートボードへ移動**](#最後のアートボードへ移動先頭のアートボードへ移動次のアートボードへ移動前のアートボードへ移動) navigateToPreviousArtboard.js
<br><br><br>


Expand Down Expand Up @@ -221,8 +222,7 @@ Illustrator CS4以降
![Add Numeric Separators](images/addNumericSeparators.png)

#### 使用方法
テキストオブジェクトを選択してスクリプトを実行します。
または、テキスト編集状態でスクリプトを実行します。
テキストオブジェクトを選択、または編集状態で範囲を指定してスクリプトを実行します。

#### 動作条件
Illustrator CS以降
Expand Down Expand Up @@ -691,6 +691,40 @@ Illustrator CS4以降



## <a name="直線に平行なテキストを作成">直線に平行なテキストを作成</a>
[![Download Text.zip](https://img.shields.io/badge/Download-Text.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Text.zip)
### createTextParallelToPathSegment.js
直線セグメント、または2点のアンカーポイントを結ぶ直線に平行なテキストを作成します。

![Create Text Parallel to Path Segment](images/createTextParallelToPathSegment.png)
> [!NOTE]
> Illustrator日本語版を使用している場合は、UIは日本語で表示します。
#### 使用方法
1. ダイレクト選択ツールで2点のアンカーポイントを選択してスクリプトを実行します。
2. テキストを入力します。デフォルト値は、2点間の距離と角度です。
3. ポイント文字、またはエリア内文字のいずれかを選択します。
`ポイント文字` 左揃え、中央揃え、右揃えを選択します。
`エリア内文字` テキストエリアの幅と高さを入力します。
4. [反転]にチェックを付けるとテキストの表示位置が反転します。
5. [中間]にチェックを付けると直線の中央に表示します。
6. 間隔の値を入力すると直線から間隔をあけます。

> [!NOTE]
> パス上文字とエリア内文字のアンカーポイントに対応しています。
> 曲線には対応していません。
> エリア内文字の幅と高さ、間隔の値の単位はルーラー単位により変わります。
#### 動作条件
Illustrator 2021以降

<div align="right">[ <a href="#テキスト">↑ トップへ戻る ↑</a> ]</div>
<br>





## <a name="スレッドテキストを作成">スレッドテキストを作成</a>
[![Download Text.zip](https://img.shields.io/badge/Download-Text.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Text.zip)
### createThreadedText.js
Expand All @@ -704,7 +738,7 @@ Illustrator CS4以降
#### 使用方法
1. 2つ以上のテキストやパスオブジェクトを選択してスクリプトを実行します。あらかじめエリア内文字に変換しておく必要はありません。
2. オブジェクトを連結する順番を選択します。
3. 整列位置の許容誤差の値を入力します。(0以上の数値)
3. 整列位置の許容誤差の値を入力します。(0以上の数値)
<img src="images/ThreadedTextSettings.png" alt="Threaded Text Settings" width="70%">
4. パスをテキストに変換するには、[パスをテキストに変換]にチェックを付けて、エリア内文字またはパス上文字のどちらかを選択します。

Expand Down Expand Up @@ -2268,19 +2302,19 @@ Illustrator CS4以降
## <a name="文字列を分割">文字列を分割</a>
[![Download Text.zip](https://img.shields.io/badge/Download-Text.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Text.zip)
### splitText.js
ポイント文字を行、単語、または文字ごとに分割します
ポイント文字またはエリア内文字を行、単語、または1文字ごとに分割します
縦組みのテキストにも対応しています。

![Split Text](images/splitText.png)
> [!NOTE]
> Illustrator日本語版を使用している場合は、UIは日本語で表示します。
#### 使用方法
1. ポイント文字を選択してスクリプトを実行します
2. 行、単語、文字のいずれかを選択します
1. ポイント文字、またはエリア内文字を選択してスクリプトを実行します
2. 行、単語、1文字のいずれかを選択します

> [!NOTE]
> エリア内文字には対応していません
> エリア内文字はポイント文字に変換します
> 文字数が多いと分割に時間がかかります。
> 分割後、テキストの位置がわずかに移動することがあります。
Expand Down
Binary file modified images/ThreadedTextSettings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/addNumericSeparators.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/convertTypeOnAPathToPointType.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/createTextParallelToPathSegment.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/createThreadedText.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/justifyContentSpaceBetween.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/sortLines.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/splitText.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/splitTextAtCursorPosition.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/swapTextContents.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/textAlign.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d01fed8

Please sign in to comment.