Skip to content

Commit

Permalink
add splitText.js, splitTextAtCursorPosition.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-chaser-high committed Sep 18, 2023
1 parent 5c846af commit b15225e
Show file tree
Hide file tree
Showing 12 changed files with 935 additions and 336 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@
<br><br>


## generateGradientColor.js
### 1.0.1 (2023-09-18)
### Changes
- Changed localization method.
<br><br>


## goToLine.js
### 1.0.1 (2023-08-27)
### Features
Expand All @@ -139,6 +146,15 @@
<br><br>


## highlightWord.js
### 1.1.0 (2023-09-18)
### Features
- Regular expressions are now supported.
### Changes
- Changed localization method.
<br><br>


## importCSVtoSwatch.js
### 1.2.0 (2023-04-08)
### Features
Expand Down Expand Up @@ -177,6 +193,13 @@
<br><br>


## matchLocationOfGradientStop.js
### 1.0.1 (2023-09-18)
### Changes
- Changed localization method.
<br><br>


## measureDistance.js
### 1.2.0 (2023-08-27)
### Added
Expand Down Expand Up @@ -204,6 +227,9 @@


## randomTextColor.js
### 1.2.1 (2023-09-18)
### Changes
- Changed localization method.
### 1.2.0 (2022-05-19)
### Added
- Added the progress bar to UI.
Expand Down
67 changes: 59 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you find a script that interests you, please download it from [![Download](ht
- [Export Color Values to CSV](#exportColorValuesToCSVjs)
- [Extract Colors from Gradient](#extractColorsFromGradientjs)
- [Generate Gradient Color](#generateGradientColorjs)
- [Highlight Word](#highlightWordjs)
- [Highlight Word](#highlightWordjs) `Update`
- [Import CSV to Swatch](#importCSVtoSwatchjs)
- [Match Location of Gradient Stop](#matchLocationOfGradientStopjs)
- [Random Text Color](#randomTextColorjs)
Expand All @@ -50,7 +50,7 @@ If you find a script that interests you, please download it from [![Download](ht
- [Relink to Folder](#relinkToFolderjs)
- [Reset to Full Scale](#resetToFullScalejs)
- [Select Embedded Link](#selectEmbeddedLinkjs)
- [Select Link](#selectLinkjs) `Update`
- [Select Link](#selectLinkjs)

### Path
[![Download Path.zip](https://img.shields.io/badge/Download-Path.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Path.zip)
Expand Down Expand Up @@ -96,14 +96,16 @@ If you find a script that interests you, please download it from [![Download](ht
- [Delete Trailing Spaces](#deleteTrailingSpacesjs)
- [Delete Word](#deleteWordjs)
- [Enclose Word in Parentheses](#encloseWordInParenthesesjs)
- [Go to Line](#goToLinejs) `Update`
- [Go to Line](#goToLinejs)
- [Go to Next Text](#goToNextTextjsgoToPreviousTextjs)
- [Go to Previous Text](#goToNextTextjsgoToPreviousTextjs)
- [Insert Line Above](#insertLineAbovejsinsertLineBelowjs)
- [Insert Line Below](#insertLineAbovejsinsertLineBelowjs)
- [Justify Content Space Between](#justifyContentSpaceBetweenjs)
- [Move Line Down](#moveLineDownjsmoveLineUpjs)
- [Move Line Up](#moveLineDownjsmoveLineUpjs)
- [Split Text](#splitTextjs) `New`
- [Split Text at Cursor Position](#splitTextAtCursorPositionjs) `New`
- [Swap Text Contents](#swapTextContentsjs)
- [Text Align Center](#textAlign_CenterjstextAlign_LeftjstextAlign_Rightjs)
- [Text Align Left](#textAlign_CenterjstextAlign_LeftjstextAlign_Rightjs)
Expand All @@ -113,9 +115,9 @@ If you find a script that interests you, please download it from [![Download](ht
[![Download Utility.zip](https://img.shields.io/badge/Download-Utility.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Utility.zip)
- [Arrange Windows](#arrangeWindowsjs)
- [Check Day of Week](#checkDayOfWeekjs)
- [Close All Documents](#closeAllDocumentsjs) `Update`
- [Close All Documents](#closeAllDocumentsjs)
- [Compare Scale](#compareScalejs)
- [Measure Distance](#measureDistancejs) `Update`
- [Measure Distance](#measureDistancejs)
- [Sum Numbers](#sumNumbersjs)
- [Sync View](#syncViewjs)
<br><br><br>
Expand Down Expand Up @@ -1167,9 +1169,9 @@ Both CMYK and RGB colors are supported.
![Highlight Word](images/highlightWord.png)

### Usage
1. Select the text objects, and run this script.
2. Type the word.
3. Use the slider to determine the color if necessary.
1. Select any text objects, and run this script.
2. Enter a word. Regular expressions are supported.
3. Use the slider to specify the color if necessary.

### Requirements
Illustrator CS4 or higher
Expand Down Expand Up @@ -1919,6 +1921,55 @@ Illustrator CS5 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.

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

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

> **Note**
> Area types are not supported.
> If there are many characters, it will take time to split them.
> After splitting, the text position may move slightly.
### Requirements
Illustrator CS4 or higher

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





# <a name="splitTextAtCursorPositionjs">splitTextAtCursorPosition.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 at the cursor position.

![Split Text at Cursor Position](images/splitTextAtCursorPosition.png)

### Usage
Move the cursor to the position you want to split, and run this script.

> **Note**
> Area types are not supported.
> In the case of multi-lines, the layout will break.
> After splitting, the text position may move slightly.
### Requirements
Illustrator CS6 or higher

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





# <a name="stepAndRepeatjs">stepAndRepeat.js</a>
[![Download Path.zip](https://img.shields.io/badge/Download-Path.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Path.zip)
This script is equivalent to InDesign's Edit menu "Step and Repeat...".
Expand Down
64 changes: 58 additions & 6 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Adobe Illustratorのスクリプト集です。
| [exportColorValuesToCSV.js](#exportColorValuesToCSVjs) | カラー数値をCSVファイルに保存 |
| [extractColorsFromGradient.js](#extractColorsFromGradientjs) | グラデーションのカラー分岐点から色を取り出す |
| [generateGradientColor.js](#generateGradientColorjs) | グラデーションを生成 |
| [highlightWord.js](#highlightWordjs) | 指定した単語の塗り色を変更 |
| [highlightWord.js](#highlightWordjs) `Update` | 指定した単語の塗り色を変更 |
| [importCSVtoSwatch.js](#importCSVtoSwatchjs) | CSVファイルを読み込む |
| [matchLocationOfGradientStop.js](#matchLocationOfGradientStopjs) | グラデーションのカラー分岐点、中間点の位置を同期 |
| [randomTextColor.js](#randomTextColorjs) | テキストの塗り色をランダムに変更 |
Expand Down Expand Up @@ -62,7 +62,7 @@ Adobe Illustratorのスクリプト集です。
| [relinkToFolder.js](#relinkToFolderjs) | フォルダに再リンク |
| [resetToFullScale.js](#resetToFullScalejs) | 画像サイズを100%に戻す |
| [selectEmbeddedLink.js](#selectEmbeddedLinkjs) | 埋め込み画像を選択 |
| [selectLink.js](#selectLinkjs) `Update` | リンクを選択 |
| [selectLink.js](#selectLinkjs) | リンクを選択 |

<br>

Expand Down Expand Up @@ -116,14 +116,16 @@ Adobe Illustratorのスクリプト集です。
| [deleteTrailingSpaces.js](#deleteTrailingSpacesjs) | 行末のスペースを削除 |
| [deleteWord.js](#deleteWordjs) | カーソル位置の単語を削除 |
| [encloseWordInParentheses.js](#encloseWordInParenthesesjs) | 文字列を括弧で囲む |
| [goToLine.js](#goToLinejs) `Update` | 指定の行に移動 |
| [goToLine.js](#goToLinejs) | 指定の行に移動 |
| [goToNextText.js](#goToNextTextjsgoToPreviousTextjs) | カーソルを次のテキストオブジェクトへ移動 |
| [goToPreviousText.js](#goToNextTextjsgoToPreviousTextjs) | カーソルを前のテキストオブジェクトへ移動 |
| [insertLineAbove.js](#insertLineAbovejsinsertLineBelowjs) | 上に行を挿入 |
| [insertLineBelow.js](#insertLineAbovejsinsertLineBelowjs) | 下に行を挿入 |
| [justifyContentSpaceBetween.js](#justifyContentSpaceBetweenjs) | テキスト両端揃え |
| [moveLineDown.js](#moveLineDownjsmoveLineUpjs) | 行を下へ移動 |
| [moveLineUp.js](#moveLineDownjsmoveLineUpjs) | 行を上へ移動 |
| [splitText.js](#splitTextjs) `New` | 文字列を分割 |
| [splitTextAtCursorPosition.js](#splitTextAtCursorPositionjs) `New` | 文字列をカーソルの位置で分割 |
| [swapTextContents.js](#swapTextContentsjs) | 文字列を交換 |
| [textAlign_Center.js](#textAlign_CenterjstextAlign_LeftjstextAlign_Rightjs) | 文字列の位置を動かさずに中央揃え |
| [textAlign_Left.js](#textAlign_CenterjstextAlign_LeftjstextAlign_Rightjs) | 文字列の位置を動かさずに左揃え |
Expand All @@ -137,9 +139,9 @@ Adobe Illustratorのスクリプト集です。
| --- | --- |
| [arrangeWindows.js](#arrangeWindowsjs) | ウィンドウを並べて表示 |
| [checkDayOfWeek.js](#checkDayOfWeekjs) | 選択した日付の曜日をチェック |
| [closeAllDocuments.js](#closeAllDocumentsjs) `Update` | すべてのドキュメントを閉じる |
| [closeAllDocuments.js](#closeAllDocumentsjs) | すべてのドキュメントを閉じる |
| [compareScale.js](#compareScalejs) | 拡大・縮小率を表示 |
| [measureDistance.js](#measureDistancejs) `Update` | 距離を測る |
| [measureDistance.js](#measureDistancejs) | 距離を測る |
| [sumNumbers.js](#sumNumbersjs) | 文字列内の数字を足す |
| [syncView.js](#syncViewjs) | ウィンドウの表示を同期 |

Expand Down Expand Up @@ -1221,7 +1223,7 @@ Illustrator CC 2018以降
#### 使用方法
1. テキストオブジェクトを選択してスクリプトを実行します。
2. 単語を入力します。
2. 単語を入力します。正規表現に対応しています。
3. 必要に応じて色を設定します。

#### 動作条件
Expand Down Expand Up @@ -1983,6 +1985,56 @@ Illustrator CS5以降



# <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)
ポイント文字を行、単語、または文字ごとに分割します。

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

> **Note**
> エリア内文字には対応していません。
> 文字数が多いと分割に時間がかかります。
> 分割後、テキストの位置がわずかに移動することがあります。
#### 動作条件
Illustrator CS4以降

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





# <a name="splitTextAtCursorPositionjs">splitTextAtCursorPosition.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)
ポイント文字をカーソルの位置で分割します。

![Split Text at Cursor Position](images/splitTextAtCursorPosition.png)

#### 使用方法
分割したい位置にカーソルを合わせてスクリプトを実行します。

> **Note**
> エリア内文字には対応していません。
> 文字列が複数行の場合はレイアウトが崩れます。
> 分割後、テキストの位置がわずかに移動することがあります。
#### 動作条件
Illustrator CS6以降

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





# <a name="stepAndRepeatjs">stepAndRepeat.js</a>
[![Download Path.zip](https://img.shields.io/badge/Download-Path.zip-e60012)](https://github.com/sky-chaser-high/adobe-illustrator-scripts/releases/latest/download/Path.zip)
InDesignの編集メニュー > 繰り返し複製... に相当します。
Expand Down
Binary file modified images/highlightWord.png
Loading
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/splitText.png
Loading
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/splitTextAtCursorPosition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b15225e

Please sign in to comment.