diff --git a/arm64/linglong.yaml b/arm64/linglong.yaml index 38d7ff288..6a8893311 100644 --- a/arm64/linglong.yaml +++ b/arm64/linglong.yaml @@ -7,7 +7,7 @@ version: "1" package: id: org.deepin.editor name: "deepin-editor" - version: 6.5.25.1 + version: 6.5.26.1 kind: app description: | editor for deepin os. diff --git a/debian/changelog b/debian/changelog index 0c9881c2f..c781d42ed 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +deepin-editor (6.5.26) unstable; urgency=medium + + * Update damn's resources + + -- dengzhongyuan Wed, 18 Jun 2025 11:13:49 +0800 + deepin-editor (6.5.25) unstable; urgency=medium * Update version to 6.5.25 diff --git a/linglong.yaml b/linglong.yaml index e1afd365e..29b4686b3 100644 --- a/linglong.yaml +++ b/linglong.yaml @@ -7,7 +7,7 @@ version: "1" package: id: org.deepin.editor name: "deepin-editor" - version: 6.5.25.1 + version: 6.5.26.1 kind: app description: | editor for deepin os. diff --git a/loong64/linglong.yaml b/loong64/linglong.yaml index 4da5bed7b..9d42058a2 100755 --- a/loong64/linglong.yaml +++ b/loong64/linglong.yaml @@ -10,7 +10,7 @@ version: "1" package: id: org.deepin.editor name: "deepin-editor" - version: 6.5.25.1 + version: 6.5.26.1 kind: app description: | editor for deepin os. diff --git a/src/assets/deepin-editor/editor/common/+.svg b/src/assets/deepin-editor/editor/common/+.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/-.svg b/src/assets/deepin-editor/editor/common/-.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/0.svg b/src/assets/deepin-editor/editor/common/0.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/A.svg b/src/assets/deepin-editor/editor/common/A.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/Alt.svg b/src/assets/deepin-editor/editor/common/Alt.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/C.svg b/src/assets/deepin-editor/editor/common/C.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/Ctrl.svg b/src/assets/deepin-editor/editor/common/Ctrl.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/Enter.svg b/src/assets/deepin-editor/editor/common/Enter.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/Esc.svg b/src/assets/deepin-editor/editor/common/Esc.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/F.svg b/src/assets/deepin-editor/editor/common/F.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/F2.svg b/src/assets/deepin-editor/editor/common/F2.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/G.svg b/src/assets/deepin-editor/editor/common/G.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/H.svg b/src/assets/deepin-editor/editor/common/H.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/L.svg b/src/assets/deepin-editor/editor/common/L.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/N.svg b/src/assets/deepin-editor/editor/common/N.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/O.svg b/src/assets/deepin-editor/editor/common/O.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/P.svg b/src/assets/deepin-editor/editor/common/P.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/QM.svg b/src/assets/deepin-editor/editor/common/QM.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/S.svg b/src/assets/deepin-editor/editor/common/S.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/Shift.svg b/src/assets/deepin-editor/editor/common/Shift.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/T.svg b/src/assets/deepin-editor/editor/common/T.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/U.svg b/src/assets/deepin-editor/editor/common/U.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/W.svg b/src/assets/deepin-editor/editor/common/W.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/Z.svg b/src/assets/deepin-editor/editor/common/Z.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/attention.svg b/src/assets/deepin-editor/editor/common/attention.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/bookmark_normal_light.svg b/src/assets/deepin-editor/editor/common/bookmark_normal_light.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/bookmarkbig_checked_light.svg b/src/assets/deepin-editor/editor/common/bookmarkbig_checked_light.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/close_icon.svg b/src/assets/deepin-editor/editor/common/close_icon.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/deepin-editor.svg b/src/assets/deepin-editor/editor/common/deepin-editor.svg deleted file mode 100755 index a8e6fb969..000000000 --- a/src/assets/deepin-editor/editor/common/deepin-editor.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/assets/deepin-editor/editor/common/deepin_editor.svg b/src/assets/deepin-editor/editor/common/deepin_editor.svg old mode 100755 new mode 100644 index ffb562a44..0d79a2821 --- a/src/assets/deepin-editor/editor/common/deepin_editor.svg +++ b/src/assets/deepin-editor/editor/common/deepin_editor.svg @@ -1,23 +1,61 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + apps/128/deepin-editor + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/deepin-editor/editor/common/deepin_launcher.svg b/src/assets/deepin-editor/editor/common/deepin_launcher.svg old mode 100755 new mode 100644 index 5793b3846..55c2fd125 --- a/src/assets/deepin-editor/editor/common/deepin_launcher.svg +++ b/src/assets/deepin-editor/editor/common/deepin_launcher.svg @@ -1,43 +1,92 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + places/128/deepin-launcher + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + \ No newline at end of file diff --git a/src/assets/deepin-editor/editor/common/icon_menu.svg b/src/assets/deepin-editor/editor/common/icon_menu.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/next.svg b/src/assets/deepin-editor/editor/common/next.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/next_down.svg b/src/assets/deepin-editor/editor/common/next_down.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/notes.svg b/src/assets/deepin-editor/editor/common/notes.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/plus_icon.svg b/src/assets/deepin-editor/editor/common/plus_icon.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/common/tips.svg b/src/assets/deepin-editor/editor/common/tips.svg old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/en_US/editor.md b/src/assets/deepin-editor/editor/en_US/editor.md index f315a5da9..69d47aab1 100644 --- a/src/assets/deepin-editor/editor/en_US/editor.md +++ b/src/assets/deepin-editor/editor/en_US/editor.md @@ -11,22 +11,21 @@ Text Editor is a simple text editing tool. You can use it to write a simple text ### Run Text Editor 1. Click the Launcher icon ![deepin_launcher](../common/deepin_launcher.svg) in the Dock to enter the Launcher interface. -2. Locate Text Editor ![deepin_editor](../common/deepin_editor.svg)by scrolling the mouse wheel or searching "text editor" in the Launcher interface and click it to run. -3. In Launcher, right-click Text Editor and you can: - +2. Locate Text Editor ![deepin_editor](../common/deepin_editor.svg) by scrolling the mouse wheel or searching "text editor" in the Launcher interface, and click it to run. +3. In Launcher, right-click Text Editor to: - Click **Send to desktop** to create a desktop shortcut. - Click **Send to dock** to fix it in the Dock. - - Click **Add to startup** to add it to startup and it will automatically run when system boots. + - Click **Add to startup** to add the application to startup, and it will automatically run when the system starts up. ### Exit Text Editor - On the Text Editor interface, click ![close](../common/close_icon.svg) to exit. -- On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg) > **Exit** to exit. -- Right-click ![deepin_editor](../common/deepin_editor.svg) in the Dock and select **Close All** to exit. +- On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg)> **Exit** to exit. +- Right-click ![deepin_editor](../common/deepin_editor.svg) in the Dock, and select **Close All** to exit. ### View Shortcuts -On the Text Editor Interface, press **Ctrl + Shift + ?** to view all the shortcuts. You can also check shortcuts in Settings. Proficiency in shortcuts will greatly improve your efficiency. +On the Text Editor Interface, press **Ctrl** + **Shift** + **?** to view all the shortcuts. You can also check shortcuts in the Settings. Proficiency in shortcuts will greatly improve your efficiency. ![1|hotkey](fig/hotkey.png) @@ -68,16 +67,16 @@ You can open one or multiple text files at one time in the following ways, and t ### Print Files -To print a file in Text Editor, you should connect and set up the printer first. +To print a file in the Text Editor interface, you should connect and set up the printer first. 1. Click ![icon_menu](../common/icon_menu.svg)> **Print**, or press **Ctrl + P** to open the print preview interface. -2. On the preview interface, preview the document,select a printer and set the printing page. -3. Click the **Advanced** option on the preview interface to select parameters including paper size and layout. -4. Click **Print** to start printing. +2. On the preview interface, preview the document, select a printer, and set the printing page. +3. Click the **Advanced** option on the preview interface to select parameters including paper size and layout. +4. Click **Print** to start printing at the printer selected. -![preview](fig/preview.png) +![pagesetup](fig/printer.png) -![pagesetup](fig/advanced-preview.png) +![printer](fig/printer_setting.png) ## Edit Texts @@ -107,9 +106,9 @@ It helps you change the case of selected text. You can change it to lowercase, u 2. Right-click and select **Change Case**. 3. Choose **Upper Case**, **Lower Case**, or **Capitalize**. The changes will take effect immediately. -You can also use **Alt** + **U / L / C** to quickly switch the cases. +You can also use **Alt** + **U/L/C** to quickly switch the cases. -![changecase](fig/d_changecase.png) +![togglecase](fig/togglecase.png) ### Highlight Texts Text Editor supports highlighting different kinds of texts. @@ -131,26 +130,27 @@ In addition to deleting characters one by one, you can quickly delete characters ### Undo -If you make an incorrect operation, press **Ctrl + Z** to undo it, or right-click to select **Undo**. +If you make an incorrect operation, press **Ctrl + Z** to undo it, or right-click and select **Undo**. ### Find Texts -1. Click ![menu](../common/icon_menu.svg) and select **Find**, or press **Ctrl** + **F** to open the "Find" box below. +1. Click ![menu](../common/icon_menu.svg) > **Find**, or press **Ctrl + F** to open the **Find** box in the bottom of the Text Editor interface. 2. Input the text you want to find. -3. Click **Previous** /**Next** to find each match, or press the **Enter** key to find the next match. +3. Click **Previous**/**Next** to find each match, or press the **Enter** key to find the next match. 4. Press the **Esc** key or click the close icon to close the dialog box. > ![tips](../common/tips.svg)Tips: Select the text and conduct search. The text selected will be automatically displayed in the **Find** box. ### Replace Texts -1. Click ![menu](../common/icon_menu.svg), and select **Replace**, or press **Ctrl + H** to open the **Replace** box below. +1. Click ![menu](../common/icon_menu.svg) > **Replace**, or press **Ctrl + H** to open the **Replace** box in the bottom of the Text Editor interface. 2. Input the text to be replaced and the new text. -3. Click **Replace** to replace the matches one by one and click **Replace Rest** and **Replace All** to replace the rest or all the matches at once. Click **Skip** to skip the current matching text. +3. Click **Replace** to replace the matches one by one, and click **Replace Rest** and **Replace All** to replace the rest or all the matches at once. Click **Skip** to skip the current matching text. 4. Press **Esc** or click the close icon to close the dialog box. ### Go to Line Use Go to Line to jump to the specific line directly. -Right-click and select **Go to Line**, or press **Ctrl + G** and then input the line number to go to that line. + +Right-click and select **Go to Line**; or press **Ctrl + G**, and then input the line number to go to that line. ### Edit Line @@ -173,15 +173,28 @@ Use the shortcuts below to edit lines easily: ### Enable/Disable Read-only Mode -1. Open the document with Text Editor and right-click to select **Turn on Read-only Mode**. +1. Open the document with Text Editor, right-click on the Text Editor interface, and select **Turn on Read-Only mode**. +1. Right-click on the Text Editor interface, and select **Turn off Read-Only mode** under the read-only mode. -![readonly](fig/d_readonly.png) -              +![readonly](fig/read_only.png) -2. Right-click to select **Turn off Read-only Mode** under the read-only mode. +![read-only](fig/read_only_02.png) -![read-only](fig/d_turnoffreadonly.png) -              +### Text to Speech + +1. Select a paragraph of texts. Right-click it and select **Text to Speech**. The texts selected will be broadcast. +1. During playback, you can stop the **Text to Speech** by clicking the close button on the reading control. + +> ![notes](../common/notes.svg) Notes: The **Text to Speech** option in the right-click menu is grayed out and cannot be activated when no text is selected. + +![read-only](fig/reading.png) + +### Speech to Text + +1. In the text editor area, right-click and select **Speech to Text**. Input speech through the microphone to insert transcribed text at the cursor position. +2. During dictation, you can stop **Speech to Text** by clicking the close button on the dictation control. + +![read-only](fig/listen.png) ### Use Column Mode @@ -191,9 +204,9 @@ Press and hold the **Alt** key on the keyboard, drag the mouse to select multipl ### Color Mark -Select the text to be marked in Text Editor, right-click to select **Color Mark** and select the corresponding options in the drop-down list as needed. +Select the text to be marked in Text Editor, right-click to select **Color Mark**, and select the corresponding options in the drop-down list as needed. -![colormark](fig/d_colormark.png) +![color](fig/colortag.png)               - Select **Mark** to mark a certain line or a paragraph of texts. You can choose from 8 colors displayed through icons. @@ -205,39 +218,34 @@ Select the text to be marked in Text Editor, right-click to select **Color Mark* - Select **Clear Last Mark** to cancel the last mark operation. - Select **Clear All Marks** to cancel all the current marks. - ### Manage Bookmarks -Check **Show bookmarks icon** in **Settings** and you can add a bookmark for any line on the Text Editor interface. The icon ![icon](../common/bookmark_normal_light.svg) shows up when you move the cursor to any line in the left column, and the icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) will appear after a bookmark is successfully added. +Check **Show bookmarks icon** in **Settings** and you can add a bookmark for any current line on the Text Editor interface. The icon ![icon](../common/bookmark_normal_light.svg) shows up when you move the cursor to any line in the left column, and the icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) will appear after a bookmark is successfully added. - Add bookmarks - + Click ![icon](../common/bookmark_normal_light.svg) to add a bookmark for the line. - + Right-click ![icon](../common/bookmark_normal_light.svg) and select **Add bookmark** to add a bookmark for the line. - + Place the cursor on any line and press **Ctrl + F2** to add a bookmark for the line. - -- Delete bookmarks + + Right-click ![icon](../common/bookmark_normal_light.svg) and select **Add bookmark** to add a bookmark for the line. + + Place the cursor on any line, and press **Ctrl + F2** to add a bookmark for the line. +- Delete bookmarks + Click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) to delete the bookmark of the line directly. - + Right-click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) to select **Remove Bookmark** to delete the bookmark in the line. - + Right-click a bookmark to select **Remove All Bookmarks** to delete all the bookmarks in the text. - >![Notes](../common/notes.svg)Notes: The bookmark icon appears only when cursor is hovered over to the left of the line number in the left column; when it's moved beyond the left bookmark column, the bookmark icon will disappear. The bookmark icon will always be displayed after being added. - + + Right-click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) , and select **Remove Bookmark** to delete the bookmark in the line. + + Right-click a bookmark, and select **Remove All Bookmarks** to delete all the bookmarks in the text. + >![Notes](../common/notes.svg) Notes: The bookmark icon appears only when cursor is hovered over to the left of the line number in the left column; when it's moved beyond the left bookmark column, the bookmark icon will disappear. The bookmark icon will always be displayed after being added. ### Manage Comments You can add comments to any text with a code type suffix, such as cpp and java, among others. - Add comments - - Select the text needed and right-click to select **Add Comment**. - - Select the text needed and press **Alt + A** to add comments. + - Select the text needed, and right-click to select **Add Comment**. + - Select the text needed, and press **Alt + A** to add comments. - Cancel comments - - Select the text with comments, and right-click to select **Remove Comment**. -- Select the text with comments, and press **Alt + Z** to cancel comments. - + - Select the text with comments, and right-click to select **Remove Comment**. + - Select the text with comments, and press **Alt + Z** to cancel comments. -> ![notes](../common/notes.svg)Notes: This supports comments in different languages. Please refer to actual conditions for detailed information. For example, comment symbol for C, C# and Java is // and comment symbol for Python is #. +> ![notes](../common/notes.svg) Notes: This supports comments in different languages. Please refer to actual conditions for detailed information. For example, comment symbol for C, C# and Java is //, and comment symbol for Python is #. ## Main Menu @@ -245,55 +253,54 @@ On the main menu, you can Create New Windows, Create New Files, [Find Texts](#Fi ### Settings -You can set the basic information, shortcuts and advanced information in settings. +You can set the basic information, shortcuts, and advanced information in settings. #### Basic Settings -Click ![icon_menu](../common/icon_menu.svg)> **Settings** and you can perform the following in the Settings window: +Click ![icon_menu](../common/icon_menu.svg)> **Settings** and you can perform the following in the **Basic** option: - Select the Font and Font Size. - Check or uncheck **Word wrap**. -- Check **Code folding flag** and ![next](../common/next.svg) or ![next](../common/next_down.svg) are displayed in the edit area. Right-click to select **Fold/Unfold Current Level** or **Fold/Unfold All** to perform the corresponding operations. +- Check **Code folding flag** and ![next](../common/next.svg) or ![next](../common/next_down.svg) are displayed in the edit area. Right-click and select **Fold/Unfold Current Level** or **Fold/Unfold All** to perform the corresponding operations. - Check **Show line numbers** to display the line number in the edit area. - Check **Highlight current line** to highlight the current line. - Check **Show bookmarks icon** to display the bookmarks in the text. - Check **Show whitespaces and tabs** to display all the white spaces and tabs. You can also input or delete white spaces and tabs manually. -> ![tips](../common/tips.svg)Tips: You can also use **Ctrl + “+”/ “-”** to adjust the font size, and press **Ctrl + 0** to restore default font size. +> ![tips](../common/tips.svg) Tips: You can also use **Ctrl + “+”/ “-”** to adjust the font size, and press **Ctrl + 0** to restore to default font size. #### Shortcuts Settings 1. Click ![icon_menu](../common/icon_menu.svg)> **Settings** to view the current shortcut in the **Shortcuts** option. 2. Select a keymap in **Shortcuts** and view the shortcuts. 3. You can click and customize new shortcuts. -> ![notes](../common/notes.svg)Notes: You can choose a proper keymap to fit your habits, including standard keymap, Emacs keymap, or customize it as you like. +> ![notes](../common/notes.svg) Notes: You can choose a proper keymap to fit your habits, including standard keymap, Emacs keymap, or customize it as you like. #### Advanced Settings 1. Click ![icon_menu](../common/icon_menu.svg)> **Settings**. 2. In the **Advanced** option, you can set: - - Window size: Normal, Maximum, or Full screen; - - Tab width: The indentation width when pressing Tab. - + - Window size: Normal, Maximum, or Fullscreen; + - Tab width: The width of a tab character. ### Theme -The window theme provides three theme types, namely Light Theme, Dark Theme and System Theme. +The window theme provides three theme types, namely Light Theme, Dark Theme, and System Theme. 1. On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg). -2. Click **Theme** to select one theme. +2. Click **Theme** to select one theme. ### Help -1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). -2. Select **Help** to view the manual of Text Editor. +1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). +2. Select **Help** to view the manual of Text Editor. ### About 1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). -2. Select **About** to view the version and introduction of Text Editor. +2. Select **About** to view the version and introduction of Text Editor. ### Exit 1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). -2. Click **Exit** to exit Text Editor. +2. Click **Exit** to exit Text Editor. \ No newline at end of file diff --git a/src/assets/deepin-editor/editor/en_US/fig/advanced-preview.png b/src/assets/deepin-editor/editor/en_US/fig/advanced-preview.png deleted file mode 100644 index b12ff1347..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/advanced-preview.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/changecase.png b/src/assets/deepin-editor/editor/en_US/fig/changecase.png deleted file mode 100644 index 0f94f0f94..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/changecase.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/colormark.png b/src/assets/deepin-editor/editor/en_US/fig/colormark.png deleted file mode 100644 index ed393530f..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/colormark.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/colortag.png b/src/assets/deepin-editor/editor/en_US/fig/colortag.png new file mode 100644 index 000000000..40dc4ed25 Binary files /dev/null and b/src/assets/deepin-editor/editor/en_US/fig/colortag.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/column_mode.png b/src/assets/deepin-editor/editor/en_US/fig/column_mode.png index bc4784484..13571c29d 100644 Binary files a/src/assets/deepin-editor/editor/en_US/fig/column_mode.png and b/src/assets/deepin-editor/editor/en_US/fig/column_mode.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/d_changecase.png b/src/assets/deepin-editor/editor/en_US/fig/d_changecase.png deleted file mode 100644 index 53176e937..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/d_changecase.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/d_colormark.png b/src/assets/deepin-editor/editor/en_US/fig/d_colormark.png deleted file mode 100644 index ee19302f2..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/d_colormark.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/d_readonly.png b/src/assets/deepin-editor/editor/en_US/fig/d_readonly.png deleted file mode 100644 index 13c25165f..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/d_readonly.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/d_turnoffreadonly.png b/src/assets/deepin-editor/editor/en_US/fig/d_turnoffreadonly.png deleted file mode 100644 index 12a65856d..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/d_turnoffreadonly.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/highlight.png b/src/assets/deepin-editor/editor/en_US/fig/highlight.png index 0b561fa4c..e61661721 100644 Binary files a/src/assets/deepin-editor/editor/en_US/fig/highlight.png and b/src/assets/deepin-editor/editor/en_US/fig/highlight.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/listen.png b/src/assets/deepin-editor/editor/en_US/fig/listen.png new file mode 100644 index 000000000..52f1a2914 Binary files /dev/null and b/src/assets/deepin-editor/editor/en_US/fig/listen.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/mark.png b/src/assets/deepin-editor/editor/en_US/fig/mark.png deleted file mode 100644 index 2d49df34f..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/mark.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/overview.png b/src/assets/deepin-editor/editor/en_US/fig/overview.png index ce8e1b6c3..803054996 100644 Binary files a/src/assets/deepin-editor/editor/en_US/fig/overview.png and b/src/assets/deepin-editor/editor/en_US/fig/overview.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/overviewx2.jpg b/src/assets/deepin-editor/editor/en_US/fig/overviewx2.jpg deleted file mode 100644 index 626835806..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/overviewx2.jpg and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/pagesetup.png b/src/assets/deepin-editor/editor/en_US/fig/pagesetup.png deleted file mode 100644 index af37bba80..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/pagesetup.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/printer.png b/src/assets/deepin-editor/editor/en_US/fig/printer.png index e7e386de1..88ad6e0b5 100644 Binary files a/src/assets/deepin-editor/editor/en_US/fig/printer.png and b/src/assets/deepin-editor/editor/en_US/fig/printer.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/printer_setting.png b/src/assets/deepin-editor/editor/en_US/fig/printer_setting.png new file mode 100644 index 000000000..807f80c8f Binary files /dev/null and b/src/assets/deepin-editor/editor/en_US/fig/printer_setting.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/read_only.png b/src/assets/deepin-editor/editor/en_US/fig/read_only.png index 6a67a2375..4bc561aa0 100644 Binary files a/src/assets/deepin-editor/editor/en_US/fig/read_only.png and b/src/assets/deepin-editor/editor/en_US/fig/read_only.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/read_only_02.png b/src/assets/deepin-editor/editor/en_US/fig/read_only_02.png index 8dac668ec..23a9e53a5 100644 Binary files a/src/assets/deepin-editor/editor/en_US/fig/read_only_02.png and b/src/assets/deepin-editor/editor/en_US/fig/read_only_02.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/reading.png b/src/assets/deepin-editor/editor/en_US/fig/reading.png index 0089c2cf2..7a78ef9e7 100644 Binary files a/src/assets/deepin-editor/editor/en_US/fig/reading.png and b/src/assets/deepin-editor/editor/en_US/fig/reading.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/shortcuts.jpg b/src/assets/deepin-editor/editor/en_US/fig/shortcuts.jpg deleted file mode 100644 index a109071e5..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/shortcuts.jpg and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/shortcutsx2.jpg b/src/assets/deepin-editor/editor/en_US/fig/shortcutsx2.jpg deleted file mode 100644 index d595feed2..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/shortcutsx2.jpg and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/texttospeech.png b/src/assets/deepin-editor/editor/en_US/fig/texttospeech.png deleted file mode 100644 index 41c379568..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/texttospeech.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/togglecase.png b/src/assets/deepin-editor/editor/en_US/fig/togglecase.png new file mode 100644 index 000000000..6c9fb8766 Binary files /dev/null and b/src/assets/deepin-editor/editor/en_US/fig/togglecase.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/translate.png b/src/assets/deepin-editor/editor/en_US/fig/translate.png deleted file mode 100644 index 7c2999b7c..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/translate.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/translation.png b/src/assets/deepin-editor/editor/en_US/fig/translation.png deleted file mode 100644 index 6b401d0b3..000000000 Binary files a/src/assets/deepin-editor/editor/en_US/fig/translation.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/en_US/p_editor.md b/src/assets/deepin-editor/editor/en_US/p_editor.md index 3df6bcd3f..69d47aab1 100644 --- a/src/assets/deepin-editor/editor/en_US/p_editor.md +++ b/src/assets/deepin-editor/editor/en_US/p_editor.md @@ -74,9 +74,9 @@ To print a file in the Text Editor interface, you should connect and set up the 3. Click the **Advanced** option on the preview interface to select parameters including paper size and layout. 4. Click **Print** to start printing at the printer selected. -![preview](fig/preview.png) +![pagesetup](fig/printer.png) -![pagesetup](fig/advanced-preview.png) +![printer](fig/printer_setting.png) ## Edit Texts @@ -108,7 +108,7 @@ It helps you change the case of selected text. You can change it to lowercase, u You can also use **Alt** + **U/L/C** to quickly switch the cases. -![changecase](fig/changecase.png) +![togglecase](fig/togglecase.png) ### Highlight Texts Text Editor supports highlighting different kinds of texts. @@ -174,31 +174,27 @@ Use the shortcuts below to edit lines easily: ### Enable/Disable Read-only Mode 1. Open the document with Text Editor, right-click on the Text Editor interface, and select **Turn on Read-Only mode**. +1. Right-click on the Text Editor interface, and select **Turn off Read-Only mode** under the read-only mode. ![readonly](fig/read_only.png) -              - -2. Right-click on the Text Editor interface, and select **Turn off Read-Only mode** under the read-only mode. ![read-only](fig/read_only_02.png) ### Text to Speech -You can perform the following operations after enabling the Text to Speech and Speech to Text features in the Control Center. - -1. Right-click and select **Speech to Text**. The input voices through microphone will be converted to texts and can be edited in the document. -2. Select a paragraph of texts. Right-click it and select **Text to Speech**. The texts selected will be broadcast. +1. Select a paragraph of texts. Right-click it and select **Text to Speech**. The texts selected will be broadcast. +1. During playback, you can stop the **Text to Speech** by clicking the close button on the reading control. > ![notes](../common/notes.svg) Notes: The **Text to Speech** option in the right-click menu is grayed out and cannot be activated when no text is selected. -![speech](fig/texttospeech.png) +![read-only](fig/reading.png) -### Translate +### Speech to Text -1. Enable **Translation** in **Control Center** > **Assistive Tools** and set the corresponding language pairs according to your needs. -2. Select the texts to be translated in Text Editor. Right-click and select **Translate**, and the texts selected will be translated into the target language. +1. In the text editor area, right-click and select **Speech to Text**. Input speech through the microphone to insert transcribed text at the cursor position. +2. During dictation, you can stop **Speech to Text** by clicking the close button on the dictation control. -![translate](fig/translate.png) +![read-only](fig/listen.png) ### Use Column Mode @@ -210,7 +206,7 @@ Press and hold the **Alt** key on the keyboard, drag the mouse to select multipl Select the text to be marked in Text Editor, right-click to select **Color Mark**, and select the corresponding options in the drop-down list as needed. -![colormark](fig/colormark.png) +![color](fig/colortag.png)               - Select **Mark** to mark a certain line or a paragraph of texts. You can choose from 8 colors displayed through icons. diff --git a/src/assets/deepin-editor/editor/zh_CN/editor.md b/src/assets/deepin-editor/editor/zh_CN/editor.md old mode 100755 new mode 100644 index 507a1c3e4..dc54d4804 --- a/src/assets/deepin-editor/editor/zh_CN/editor.md +++ b/src/assets/deepin-editor/editor/zh_CN/editor.md @@ -55,28 +55,22 @@ > ![notes](../common/notes.svg)说明:如果您的文件发生了变化而没有保存,文本编辑器会在关闭前提示您保存更改。 - - ### 打开文件 - 您可以采用以下方式打开一个或同时打开多个文本文件,选中的文件将会在新标签页打开: - 直接拖动文件到文本编辑器界面或其图标上。 - 右键单击文件,选择 **打开方式** > **文本编辑器**。选择文本编辑器为默认打开程序后,可直接双击打开。 -- 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg) > **打开文件** 或使用快捷键 **Ctrl + O**,在弹出的窗口中选择文件。 - - +- 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg) > **打开文件** 或使用快捷键 **Ctrl + O**,在弹出的窗口中选择文件打开。 ### 保存文件 - 单击 ![icon_menu](../common/icon_menu.svg) > **保存** 或使用快捷键 **Ctrl + S**,保存当前文件。 - 单击 ![icon_menu](../common/icon_menu.svg) > **另存为** 或使用快捷键 **Ctrl + Shift + S**,另存当前文件。 - ### 打印文件 -在文本编辑器中使用打印,需要您连接并配置好打印机。 +在文本编辑器中使用打印,需要提前连接并配置好打印机。 1. 单击 ![icon_menu](../common/icon_menu.svg) > **打印** 或使用快捷键 **Ctrl + P** 打开打印预览。 2. 在打印预览界面,您可以预览文件,选择打印机并设置打印页面。 @@ -119,7 +113,7 @@ 您也可以使用快捷键 **Alt + U/ L/ C** 迅速切换大小写。 -![toggle_case](fig/d_toggle_case.png) +![togglecase](fig/togglecase.png) ### 高亮文本 @@ -185,10 +179,27 @@ 1. 使用文本编辑器打开文档,单击右键,选择 **开启只读模式**。 2. 在只读模式下,单击右键,选择 **关闭只读模式**。 -![read_only](fig/d_read_only.png) +![read-only](fig/read_only.png) + +![read-only](fig/read_only_02.png) + +### 语音朗读 + +1. 选择一段文字后,单击右键选择 **语音朗读**,将会语音播报选中的文字。 + +2. 在朗读过程中,通过单击朗读控件的关闭按钮可结束语音朗读。 -![read_only](fig/d_read_only02.png) + > ![notes](../common/notes.svg)说明:当未选择文字时,右键菜单中 **语音朗读** 不可激活,处于置灰状态。 +![read-only](fig/reading.png) + +### **语音听写** + +1. 在文本编辑区域内,单击鼠标右键选择 **语音听写**,通过麦克风输入语音,转译文字将被插入到光标所在位置。 + +2. 在听写模式下,通过单击听写控件的关闭按钮可停止语音听写。 + +![read-only](fig/listen.png) ### 列编辑 @@ -202,7 +213,7 @@ 在文本编辑器界面,单击鼠标右键选择 **颜色标记**,在其下拉列表中进行选择。 -![color](fig/d_colortag.png) +![color](fig/colortag.png) - **添加标记**:对某一行或某一段文本内容添加颜色标记;有8种颜色按钮可供选择。 + 将光标定在某一行,标记当前所在的行。 @@ -214,8 +225,6 @@ - **清除上次标记**:清除上次标记操作。 - **清除所有标记**:清除当前所有标记。 - - ### 书签管理 在文本编辑器设置界面,勾选 **显示书签图标** 后,您可以为任意一行的文本内容添加书签。将鼠标指针移至左侧栏任意行号前面会显示图标 ![icon](../common/bookmark_normal_light.svg),添加成功后该行的书签图标会变为蓝色填充的图标 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 @@ -226,7 +235,6 @@ + 鼠标右键单击 ![icon](../common/bookmark_normal_light.svg),选择 **添加书签**,为该行添加一个书签。 + 将光标定在文本中任意一行,使用快捷键 **Ctrl + F2** 为该行添加一个书签。 - - 删除书签 + 鼠标左键单击已填充颜色的书签图标,直接删除该行书签。 @@ -263,17 +271,17 @@ #### 基础设置 -1. 单击![icon_menu](../common/icon_menu.svg) > **设置**。 +1. 单击![icon_menu](../common/icon_menu.svg)> **设置**。 2. 在基础设置选项,您可以选择: - 设置字体样式和字号大小。 - 勾选 **自动换行**,在编辑区自动换行。 - - 勾选 **代码折叠标志**,在左侧栏显示按钮![next](../common/next.svg)或者![next](../common/next_down.svg) ,右键单击按钮选择折叠/展开当前层次或所有层次。 + - 勾选 **代码折叠标志**,在左侧栏显示按钮![next](../common/next.svg)或者![next](../common/next_down.svg),右键单击按钮选择折叠/展开当前层次或所有层次。 - 勾选 **显示行号**,在左侧栏显示行号。 - 勾选 **当前行高亮**,光标所在的行高亮显示。 - 勾选 **显示书签图标**,在左侧栏显示书签图标。 - 勾选 **显示空白制符/制表符**,显示文本中的空白字符和制表符,您也可以手动输入或删除空白字符和制表符。 - - > ![tips](../common/tips.svg)窍门:您还可以使用 **Ctrl + “+”/ “-”** 来调节文本编辑器的默认字号。使用 **Ctrl + 0** 恢复默认字号。 + + > ![tips](../common/tips.svg)窍门:在文本编辑器中,使用 **Ctrl + “+”/ “-”** 调节字号,使用 **Ctrl + 0** 恢复默认字号。 @@ -281,20 +289,19 @@ 1. 单击 ![icon_menu](../common/icon_menu.svg) > **设置**,在 **快捷键** 选项查看当前快捷键。 2. 选择一种快捷键映射。 -3. 您可以单击并重新输入快捷键,自定义快捷键。 +3. 您可以单击快捷键编辑区域,自定义快捷键。 > ![notes](../common/notes.svg)说明: 快捷键映射允许您选择某一种键盘快捷键。您可以使用标准快捷键,Emacs快捷键,或自定义快捷键,以符合您的使用习惯。 #### 高级设置 -1. 单击 ![icon_menu](../common/icon_menu.svg) > **设置**。 +1. 单击 ![icon_menu](../common/icon_menu.svg) >**设置**。 2. 在 **高级设置** 选项,您可以设置: - 窗口状态:正常窗口,最大化或全屏。 - Tab字符宽度:Tab缩进所占用的空间大小。 - ### 主题 窗口主题包含浅色主题、深色主题和系统主题。 @@ -319,4 +326,4 @@ ### 退出 1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 -2. 选择 **退出**。 \ No newline at end of file +2. 选择 **退出**。 diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/close.png b/src/assets/deepin-editor/editor/zh_CN/fig/close.png deleted file mode 100755 index eb5704b81..000000000 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/close.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/colortag.png b/src/assets/deepin-editor/editor/zh_CN/fig/colortag.png old mode 100755 new mode 100644 index 5b64f60d1..88776928c Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/colortag.png and b/src/assets/deepin-editor/editor/zh_CN/fig/colortag.png differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/column_mode.png b/src/assets/deepin-editor/editor/zh_CN/fig/column_mode.png old mode 100755 new mode 100644 index 52ec0e407..f7aed6b32 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/column_mode.png and b/src/assets/deepin-editor/editor/zh_CN/fig/column_mode.png differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/d_colortag.png b/src/assets/deepin-editor/editor/zh_CN/fig/d_colortag.png deleted file mode 100755 index f7021f8e3..000000000 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/d_colortag.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/d_column_mode.png b/src/assets/deepin-editor/editor/zh_CN/fig/d_column_mode.png deleted file mode 100755 index 76ee58b8e..000000000 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/d_column_mode.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/d_read_only.png b/src/assets/deepin-editor/editor/zh_CN/fig/d_read_only.png deleted file mode 100755 index 384de02df..000000000 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/d_read_only.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/d_read_only02.png b/src/assets/deepin-editor/editor/zh_CN/fig/d_read_only02.png deleted file mode 100755 index f3200d80a..000000000 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/d_read_only02.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/d_toggle_case.png b/src/assets/deepin-editor/editor/zh_CN/fig/d_toggle_case.png deleted file mode 100755 index 05733d417..000000000 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/d_toggle_case.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/highlight.png b/src/assets/deepin-editor/editor/zh_CN/fig/highlight.png old mode 100755 new mode 100644 index 955ff0130..6f15f2608 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/highlight.png and b/src/assets/deepin-editor/editor/zh_CN/fig/highlight.png differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/hotkey.png b/src/assets/deepin-editor/editor/zh_CN/fig/hotkey.png old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/listen.png b/src/assets/deepin-editor/editor/zh_CN/fig/listen.png old mode 100755 new mode 100644 index d397f90ea..36cc2f2ef Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/listen.png and b/src/assets/deepin-editor/editor/zh_CN/fig/listen.png differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/overview.png b/src/assets/deepin-editor/editor/zh_CN/fig/overview.png old mode 100755 new mode 100644 index 56e6ef348..efc554ff1 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/overview.png and b/src/assets/deepin-editor/editor/zh_CN/fig/overview.png differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/read_only.png b/src/assets/deepin-editor/editor/zh_CN/fig/read_only.png old mode 100755 new mode 100644 index 9d26b1e1e..c58625904 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/read_only.png and b/src/assets/deepin-editor/editor/zh_CN/fig/read_only.png differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/read_only_02.png b/src/assets/deepin-editor/editor/zh_CN/fig/read_only_02.png old mode 100755 new mode 100644 index 960b5a350..6ee9315a8 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/read_only_02.png and b/src/assets/deepin-editor/editor/zh_CN/fig/read_only_02.png differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/reading.png b/src/assets/deepin-editor/editor/zh_CN/fig/reading.png old mode 100755 new mode 100644 index 7dbbeed5c..38ffbc8a7 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/reading.png and b/src/assets/deepin-editor/editor/zh_CN/fig/reading.png differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/text_translation.png b/src/assets/deepin-editor/editor/zh_CN/fig/text_translation.png deleted file mode 100755 index 890ecd017..000000000 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/text_translation.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_CN/fig/togglecase.png b/src/assets/deepin-editor/editor/zh_CN/fig/togglecase.png old mode 100755 new mode 100644 index 63ac808ab..7de472488 Binary files a/src/assets/deepin-editor/editor/zh_CN/fig/togglecase.png and b/src/assets/deepin-editor/editor/zh_CN/fig/togglecase.png differ diff --git a/src/assets/deepin-editor/editor/zh_CN/p_editor.md b/src/assets/deepin-editor/editor/zh_CN/p_editor.md old mode 100755 new mode 100644 index ba0119d7f..dc54d4804 --- a/src/assets/deepin-editor/editor/zh_CN/p_editor.md +++ b/src/assets/deepin-editor/editor/zh_CN/p_editor.md @@ -12,7 +12,7 @@ 1. 单击任务栏上的启动器图标 ![deepin_launcher](../common/deepin_launcher.svg),进入启动器界面。 2. 上下滚动鼠标滚轮浏览或通过搜索,找到文本编辑器图标 ![deepin_editor](../common/deepin_editor.svg),单击运行。 -3. 右键单击 ![deepin_editor](../common/deepin_editor.svg),您可以: +3. 右键单击![deepin_editor](../common/deepin_editor.svg),您可以: - 单击 **发送到桌面**,在桌面创建快捷方式。 - 单击 **发送到任务栏**,将应用程序固定到任务栏。 @@ -37,7 +37,7 @@ - 新建标签页/窗口 - - 单击标签页上的 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新标签页** 或使用快捷键 **Ctrl + T** 创建一个新的标签页。 + - 单击标签页上的按钮 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新标签页** 或使用快捷键 **Ctrl + T** 创建一个新的标签页。 - 单击![icon_menu](../common/icon_menu.svg) > **新窗口** 或使用快捷键 **Ctrl + N** 创建一个新的窗口。 - 调整标签页/窗口 @@ -49,7 +49,7 @@ - 关闭标签页/窗口 当窗口中仅有一个标签页时,关闭标签页的同时也会关闭窗口。 - - 使用 **Ctrl + W** 组合键关闭当前标签页。 + - 使用快捷键 **Ctrl + W** 关闭当前标签页。 - 单击标签页上的按钮 ![close_icon](../common/close_icon.svg) 或者单击鼠标中键,关闭当前标签页。 - 右键单击标签页,选择 **关闭标签页** 、**关闭其他标签页** 或 **更多关闭方式** 来关闭标签页。 @@ -60,7 +60,7 @@ 您可以采用以下方式打开一个或同时打开多个文本文件,选中的文件将会在新标签页打开: - 直接拖动文件到文本编辑器界面或其图标上。 -- 右键单击文件,选择 **打开方式** > **文本编辑器**。选择文本编辑器为默认打开程序后,可以直接双击打开。 +- 右键单击文件,选择 **打开方式** > **文本编辑器**。选择文本编辑器为默认打开程序后,可直接双击打开。 - 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg) > **打开文件** 或使用快捷键 **Ctrl + O**,在弹出的窗口中选择文件打开。 ### 保存文件 @@ -72,7 +72,7 @@ 在文本编辑器中使用打印,需要提前连接并配置好打印机。 -1. 单击 ![icon_menu](../common/icon_menu.svg) > **打印**,也可以使用快捷键 **Ctrl + P** 打开打印预览。 +1. 单击 ![icon_menu](../common/icon_menu.svg) > **打印** 或使用快捷键 **Ctrl + P** 打开打印预览。 2. 在打印预览界面,您可以预览文件,选择打印机并设置打印页面。 3. 在打印预览界面,单击 **高级设置**,可配置纸张大小、打印方式等相关参数。 4. 单击 **打印** 即可将文件发送到打印机打印。 @@ -138,7 +138,7 @@ ### 查找文本 -1. 单击 ![menu](../common/icon_menu.svg) > **查找** 或使用快捷键 **Ctrl + F** ,打开查找窗口。 +1. 单击 ![menu](../common/icon_menu.svg) > **查找** 或使用快捷键 **Ctrl + F**,打开查找窗口。 2. 在查找窗口中,输入要搜索的文本。 3. 单击 **下一个**、**上一个** 逐个查找,或使用 **Enter** 键查找下一个匹配项。 4. 按下 **Esc** 键或单击关闭按钮,关闭查找窗口。 @@ -148,7 +148,7 @@ ### 替换文本 1. 单击 ![menu](../common/icon_menu.svg) > **替换** 或使用快捷键 **Ctrl + H** ,打开替换窗口。 2. 在替换窗口中,输入要替换的文本以及新文本。 -3. 单击 **替换** 逐个替换,单击 **剩余替换**、**全部替换** 一次性替换剩余的或所有的匹配文本;单击 **跳过** 不替换当前匹配的文本。 +3. 单击 **替换** 逐个替换;单击 **剩余替换**、**全部替换** 一次性替换剩余的或所有的匹配文本;单击 **跳过** 不替换当前匹配的文本。 4. 按下 **Esc** 键或单击关闭按钮,关闭搜索窗口。 ### 跳到行 @@ -185,26 +185,25 @@ ### 语音朗读 -在“控制中心”>“辅助功能”中开启语音朗读、语音听写功能后,可以执行如下操作。 +1. 选择一段文字后,单击右键选择 **语音朗读**,将会语音播报选中的文字。 -1. 单击右键,选择 **语音听写**,通过麦克风语音输入后,转译文字将被编辑在文档中。 -2. 选择一段文字后,单击右键,选择 **语音朗读**,语音播报选中的文字。 +2. 在朗读过程中,通过单击朗读控件的关闭按钮可结束语音朗读。 - > ![notes](../common/notes.svg)说明:当未选择文字时,右键菜单中 **语音朗读** 不可激活,处置灰状态。 + > ![notes](../common/notes.svg)说明:当未选择文字时,右键菜单中 **语音朗读** 不可激活,处于置灰状态。 ![read-only](fig/reading.png) -### 文本翻译 +### **语音听写** -在“控制中心”>“辅助功能”中开启文本翻译并选择语言后,可以执行以下操作。 +1. 在文本编辑区域内,单击鼠标右键选择 **语音听写**,通过麦克风输入语音,转译文字将被插入到光标所在位置。 -1. 在文本编辑器界面选择一段文本后,单击右键,选择 **文本翻译**,可将该段文本内容翻译成目标语言。 +2. 在听写模式下,通过单击听写控件的关闭按钮可停止语音听写。 -![text](fig/text_translation.png) +![read-only](fig/listen.png) ### 列编辑 -在文本编辑器界面,按住键盘上的 **Alt** 键不放,鼠标左键单击多列启动列编辑模式,为多行代码同时编辑相同的内容,提高工作效率。 +在文本编辑器界面,按住 **Alt** 键不放,鼠标左键单击多列启动列编辑模式,为多行代码同时编辑相同的内容,提高工作效率。 ![mode](fig/column_mode.png) @@ -242,7 +241,7 @@ + 鼠标右键单击已填充颜色的书签图标,选择 **清除书签**,删除该行书签。 + 鼠标右键单击书签图标,选择 **清除所有书签**,删除该文本的全部书签。 - >![icon](../common/notes.svg)说明:鼠标移到左侧行号前面才会显示书签图标,移出书签区域,书签图标消失。添加书签后,该图标一直显示。 + >![icon](../common/notes.svg)说明:鼠标移到左侧行号前面才会显示书签图标,移出书签区域,书签图标消失。添加书签后,该图标一直显示。 @@ -252,7 +251,7 @@ - 添加注释 + 选中一段文本内容,单击右键并选择 **添加注释**。 - + 选中一段文本内容,使用组合键 **Alt + A** 添加注释。 + + 选中一段文本内容,使用快捷键 **Alt + A** 添加注释。 - 取消注释 + 选中一段已添加注释的文本内容,单击右键并选择 **取消注释**。 @@ -264,7 +263,7 @@ ## 主菜单 -在主菜单中,您可以新建窗口、新建标签页、[查找文本](#查找文本)、[替换文本](#替换文本)、保存文件、切换窗口主题、查看帮助手册、进一步了解文本编辑器的更多信息。 +在主菜单中,您可以新建窗口、新建标签页、[查找文本](#查找文本)、[替换文本](#替换文本)、保存文件、切换窗口主题、查看帮助手册,了解文本编辑器的更多信息。 ### 设置 @@ -272,11 +271,11 @@ #### 基础设置 -1. 单击 ![icon_menu](../common/icon_menu.svg)> **设置**。 +1. 单击![icon_menu](../common/icon_menu.svg)> **设置**。 2. 在基础设置选项,您可以选择: - 设置字体样式和字号大小。 - 勾选 **自动换行**,在编辑区自动换行。 - - 勾选 **代码折叠标志**,在左侧栏显示按钮 ![next](../common/next.svg) 或者 ![next](../common/next_down.svg),右键单击按钮选择折叠/展开当前层次或所有层次。 + - 勾选 **代码折叠标志**,在左侧栏显示按钮![next](../common/next.svg)或者![next](../common/next_down.svg),右键单击按钮选择折叠/展开当前层次或所有层次。 - 勾选 **显示行号**,在左侧栏显示行号。 - 勾选 **当前行高亮**,光标所在的行高亮显示。 - 勾选 **显示书签图标**,在左侧栏显示书签图标。 @@ -292,7 +291,7 @@ 2. 选择一种快捷键映射。 3. 您可以单击快捷键编辑区域,自定义快捷键。 - > ![notes](../common/notes.svg)说明: 快捷键映射允许您选择某一种键盘快捷键。可以使用标准快捷键,Emacs快捷键,或自定义快捷键,以符合您的使用习惯。 + > ![notes](../common/notes.svg)说明: 快捷键映射允许您选择某一种键盘快捷键。您可以使用标准快捷键,Emacs快捷键,或自定义快捷键,以符合您的使用习惯。 #### 高级设置 @@ -327,4 +326,4 @@ ### 退出 1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 -2. 选择 **退出**。 \ No newline at end of file +2. 选择 **退出**。 diff --git a/src/assets/deepin-editor/editor/zh_HK/editor.md b/src/assets/deepin-editor/editor/zh_HK/editor.md old mode 100755 new mode 100644 index 983546b69..20e52b360 --- a/src/assets/deepin-editor/editor/zh_HK/editor.md +++ b/src/assets/deepin-editor/editor/zh_HK/editor.md @@ -11,8 +11,8 @@ ### 運行文本編輯器 1. 單擊任務欄上的啟動器圖標 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器界面。 -2. 上下滾動鼠標滾輪瀏覽或通過搜索,找到文本編輯器圖標![deepin_editor](../common/deepin_editor.svg),單擊運行。 -3. 右鍵單擊![deepin_editor](../common/deepin_editor.svg),您可以: +2. 上下滾動鼠標滾輪瀏覽或通過搜索,找到文本編輯器圖標 ![deepin_editor](../common/deepin_editor.svg),單擊運行。 +3. 右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),您可以: - 單擊 **傳送到桌面**,在桌面創建快捷方式。 - 單擊 **傳送到任務欄**,將應用程序固定到任務欄。 @@ -37,8 +37,8 @@ - 新建標籤頁/窗口 - - 單擊標籤頁上的 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新標籤頁** 或使用快捷鍵 **Ctrl + T** 創建一個新的標籤頁。 - - 單擊![icon_menu](../common/icon_menu.svg) > **新窗口** 或使用快捷鍵 **Ctrl + N** 創建一個新的窗口。 + - 單擊標籤頁上的按鈕 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新標籤頁** 或使用快捷鍵 **Ctrl + T** 創建一個新的標籤頁。 + - 單擊 ![icon_menu](../common/icon_menu.svg) > **新窗口** 或使用快捷鍵 **Ctrl + N** 創建一個新的窗口。 - 調整標籤頁/窗口 @@ -50,7 +50,7 @@ 當窗口中僅有一個標籤頁時,關閉標籤頁的同時也會關閉窗口。 - 使用快捷鍵 **Ctrl + W** 關閉當前標籤頁。 - - 單擊標籤頁上的按鈕 ![close_icon](../common/close_icon.svg) 或者單擊鼠標中鍵,關閉當前標籤頁。 + - 單擊標籤頁上的 ![close_icon](../common/close_icon.svg) 按鈕或者單擊鼠標中鍵,關閉當前標籤頁。 - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 來關閉標籤頁。 > ![notes](../common/notes.svg)說明:如果您的文件發生了變化而沒有保存,文本編輯器會在關閉前提示您保存更改。 @@ -70,6 +70,7 @@ - 單擊 ![icon_menu](../common/icon_menu.svg) > **另存為** 或使用快捷鍵 **Ctrl + Shift + S**,另存當前文件。 + ### 打印文件 在文本編輯器中使用打印,需要您連接並配置好打印機。 @@ -111,7 +112,7 @@ 您也可以使用快捷鍵 **Alt + U/ L/ C** 迅速切換大小寫。 -![toggle_case](fig/d_toggle_case.png) +![toggle_case](fig/toggle_case.png) ### 高亮文本 @@ -132,7 +133,7 @@ ### 撤銷操作 -如果在編輯文本時發生誤操作, 可以使用快捷鍵 **Ctrl + Z** 撤銷操作, 或者在右鍵菜單中選擇 **撤銷**。 +如果在編輯文本時發生誤操作,可以使用快捷鍵 **Ctrl + Z** 撤銷操作,或者在右鍵菜單中選擇 **撤銷**。 ### 查找文本 @@ -177,11 +178,27 @@ 1. 使用文本編輯器打開文檔,單擊右鍵,選擇 **開啟只讀模式**。 2. 在只讀模式下,單擊右鍵,選擇 **關閉只讀模式**。 -![read_only](fig/d_read_only.png) +![read_only](fig/read_only.png) + +![read_only](fig/read_only02.png) + +### 語音朗讀 + +1. 選取一段文字後,點擊右鍵選擇 **語音朗讀**,即可將選中的文字以語音播報。 + +2. 朗讀過程中,點擊朗讀控制項上的關閉按鈕即可終止語音朗讀。 + + > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵菜單中 **語音朗讀** 不可啟動,處置灰狀態。 -![read_only](fig/d_read_only02.png) +![read_only](fig/reading.png) +### 語音聽寫 + +1. 在文字編輯區域內,點擊滑鼠右鍵選擇 **語音聽寫**,即可透過咪高峰輸入語音,轉換成的文字將會插入至游標所在位置。 +2. 在聽寫模式下,點擊聽寫控制項上的關閉按鈕即可停止語音聽寫。 + +![read-only](fig/listen.png) ### 列編輯 @@ -193,7 +210,7 @@ 在文本編輯器界面,單擊鼠標右鍵選擇 **顏色標記**,在其下拉列表中進行選擇。 -![color](fig/d_color_tag.png) +![color](fig/color_tag.png) - **設置標記**:對某一行或某一段文本內容添加顏色標記;有8種顏色按鈕可供選擇。 + 將光標定在某一行,標記當前所在的行。 @@ -206,15 +223,14 @@ - ### 書籤管理 -在文本編輯器設置界面,勾選 **顯示書籤圖標** 後,您可以為任意一行的文本內容添加一個書籤。將鼠標指針移至左側欄任意行號前面會顯示圖標 ![icon](../common/bookmark_normal_light.svg),添加成功後該行的書籤圖標會變為藍色填充的圖標 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 +在文本編輯器設置界面,勾選 **顯示書籤圖標** 後,您可以為任意一行的文本內容添加一個書籤。將鼠標指針移至左側欄任意行號前面會顯示圖標 ![icon](../common/bookmark_normal_light.svg),添加成功後該行的書籤圖標會變為藍色填充的圖標 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 - 添加書籤 + 鼠標左鍵單擊 ![icon](../common/bookmark_normal_light.svg),為該行添加書籤。 - + 鼠標右鍵單擊![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + + 鼠標右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + 將光標定在文本中任意一行,使用快捷鍵 **Ctrl + F2** 為該行添加一個書籤。 - 刪除書籤 @@ -245,18 +261,17 @@ ## 主菜單 在主菜單中,您可以新建窗口、新建標籤頁、[查找文本](#查找文本)、[替換文本](#替換文本)、保存文件、切換窗口主題、查看幫助手冊,了解文本編輯器的更多訊息。 - ### 設置 您可以對基礎訊息、快捷鍵和高級訊息進行設置。 #### 基礎設置 -1. 單擊![icon_menu](../common/icon_menu.svg)> **設置**。 +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設置**。 2. 在基礎設置選項,您可以選擇: - 設置字體樣式和字號大小。 - 勾選 **自動換行**,在編輯區自動換行。 - - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開當前層次或所有層次。 + - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示 ![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開當前層次或所有層次。 - 勾選 **顯示行號**,在左側欄顯示行號。 - 勾選 **當前行高亮**,光標所在的行高亮顯示。 - 勾選 **顯示書籤圖標**,在左側欄顯示書籤圖標。 @@ -265,6 +280,7 @@ > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 來調節文本編輯器的默認字號。使用 **Ctrl + 0** 恢復默認字號。 + #### 快捷鍵設置 1. 單擊![icon_menu](../common/icon_menu.svg)> **設置**,在 **快捷鍵** 選項查看當前快捷鍵。 @@ -276,7 +292,7 @@ #### 高級設置 -1. 單擊![icon_menu](../common/icon_menu.svg)>**設置**。 +1. 單擊 ![icon_menu](../common/icon_menu.svg) >**設置**。 2. 在 **高級設置** 選項,您可以設置: - 窗口狀態:正常窗口,最大化或全螢幕。 - Tab字符寬度:Tab縮進所佔用的空間大小。 @@ -287,7 +303,7 @@ 窗口主題包含淺色主題、深色主題和系統主題。 -1. 在文本編輯器界面,單擊![icon_menu](../common/icon_menu.svg)。 +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 單擊 **主題**,選擇一個主題顏色。 ### 幫助 diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/close.png b/src/assets/deepin-editor/editor/zh_HK/fig/close.png deleted file mode 100755 index eb5704b81..000000000 Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/close.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/color_tag.png b/src/assets/deepin-editor/editor/zh_HK/fig/color_tag.png deleted file mode 100755 index aa8b20067..000000000 Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/color_tag.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/colortag.png b/src/assets/deepin-editor/editor/zh_HK/fig/colortag.png new file mode 100644 index 000000000..8e1e061f6 Binary files /dev/null and b/src/assets/deepin-editor/editor/zh_HK/fig/colortag.png differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/column_mode.png b/src/assets/deepin-editor/editor/zh_HK/fig/column_mode.png old mode 100755 new mode 100644 index 8d55fc7aa..d21f318ee Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/column_mode.png and b/src/assets/deepin-editor/editor/zh_HK/fig/column_mode.png differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/d_color_tag.png b/src/assets/deepin-editor/editor/zh_HK/fig/d_color_tag.png deleted file mode 100755 index 24a393283..000000000 Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/d_color_tag.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/d_read_only.png b/src/assets/deepin-editor/editor/zh_HK/fig/d_read_only.png deleted file mode 100755 index e5cdf3ab1..000000000 Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/d_read_only.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/d_read_only02.png b/src/assets/deepin-editor/editor/zh_HK/fig/d_read_only02.png deleted file mode 100755 index c140b8083..000000000 Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/d_read_only02.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/d_toggle_case.png b/src/assets/deepin-editor/editor/zh_HK/fig/d_toggle_case.png deleted file mode 100755 index bbe4afb48..000000000 Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/d_toggle_case.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/highlight.png b/src/assets/deepin-editor/editor/zh_HK/fig/highlight.png old mode 100755 new mode 100644 index 9ec23d428..ee2b7748b Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/highlight.png and b/src/assets/deepin-editor/editor/zh_HK/fig/highlight.png differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/hotkey.png b/src/assets/deepin-editor/editor/zh_HK/fig/hotkey.png old mode 100755 new mode 100644 diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/listen.png b/src/assets/deepin-editor/editor/zh_HK/fig/listen.png old mode 100755 new mode 100644 index d397f90ea..8283dc5af Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/listen.png and b/src/assets/deepin-editor/editor/zh_HK/fig/listen.png differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/overview.png b/src/assets/deepin-editor/editor/zh_HK/fig/overview.png old mode 100755 new mode 100644 index b20ade643..92faa4130 Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/overview.png and b/src/assets/deepin-editor/editor/zh_HK/fig/overview.png differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/printer.png b/src/assets/deepin-editor/editor/zh_HK/fig/printer.png new file mode 100644 index 000000000..8ea80e58d Binary files /dev/null and b/src/assets/deepin-editor/editor/zh_HK/fig/printer.png differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/printer_setting.png b/src/assets/deepin-editor/editor/zh_HK/fig/printer_setting.png new file mode 100644 index 000000000..8a54f878e Binary files /dev/null and b/src/assets/deepin-editor/editor/zh_HK/fig/printer_setting.png differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/read_only.png b/src/assets/deepin-editor/editor/zh_HK/fig/read_only.png old mode 100755 new mode 100644 index e9ecb117b..d514402cb Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/read_only.png and b/src/assets/deepin-editor/editor/zh_HK/fig/read_only.png differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/read_only02.png b/src/assets/deepin-editor/editor/zh_HK/fig/read_only02.png old mode 100755 new mode 100644 index fe3fdee35..45aa5763d Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/read_only02.png and b/src/assets/deepin-editor/editor/zh_HK/fig/read_only02.png differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/reading.png b/src/assets/deepin-editor/editor/zh_HK/fig/reading.png old mode 100755 new mode 100644 index 12ae8421d..71a466d33 Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/reading.png and b/src/assets/deepin-editor/editor/zh_HK/fig/reading.png differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/toggle_case.png b/src/assets/deepin-editor/editor/zh_HK/fig/toggle_case.png deleted file mode 100755 index e7d395f27..000000000 Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/toggle_case.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/togglecase.png b/src/assets/deepin-editor/editor/zh_HK/fig/togglecase.png new file mode 100644 index 000000000..cfc32f190 Binary files /dev/null and b/src/assets/deepin-editor/editor/zh_HK/fig/togglecase.png differ diff --git a/src/assets/deepin-editor/editor/zh_HK/fig/translation.png b/src/assets/deepin-editor/editor/zh_HK/fig/translation.png deleted file mode 100755 index b522e244a..000000000 Binary files a/src/assets/deepin-editor/editor/zh_HK/fig/translation.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_HK/p_editor.md b/src/assets/deepin-editor/editor/zh_HK/p_editor.md old mode 100755 new mode 100644 index 52c628392..20e52b360 --- a/src/assets/deepin-editor/editor/zh_HK/p_editor.md +++ b/src/assets/deepin-editor/editor/zh_HK/p_editor.md @@ -184,25 +184,21 @@ ### 語音朗讀 -在 **控制中心 > 輔助功能** 中開啟語音朗讀、語音聽寫功能後,可以執行如下操作。 +1. 選取一段文字後,點擊右鍵選擇 **語音朗讀**,即可將選中的文字以語音播報。 -1. 單擊右鍵,選擇 **語音聽寫**,通過麥克風語音輸入後,轉譯文字將被編輯在文檔中 -2. 選擇一段文字後,單擊右鍵,選擇 **語音朗讀**,語音播報選中的文字。 +2. 朗讀過程中,點擊朗讀控制項上的關閉按鈕即可終止語音朗讀。 > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵菜單中 **語音朗讀** 不可啟動,處置灰狀態。 ![read_only](fig/reading.png) -### 文本翻譯 - -在 **控制中心 > 輔助功能** 中開啟文本翻譯並選擇語言後,可以執行以下操作。 - -1. 在文本編輯器界面選擇一段文本後,單擊右鍵,選擇 **文本翻譯**,可將該段文本內容翻譯成目標語言。 - -![text](fig/translation.png) +### 語音聽寫 +1. 在文字編輯區域內,點擊滑鼠右鍵選擇 **語音聽寫**,即可透過咪高峰輸入語音,轉換成的文字將會插入至游標所在位置。 +2. 在聽寫模式下,點擊聽寫控制項上的關閉按鈕即可停止語音聽寫。 +![read-only](fig/listen.png) ### 列編輯 diff --git a/src/assets/deepin-editor/editor/zh_TW/editor.md b/src/assets/deepin-editor/editor/zh_TW/editor.md index d7862d56d..ca6298f5d 100644 --- a/src/assets/deepin-editor/editor/zh_TW/editor.md +++ b/src/assets/deepin-editor/editor/zh_TW/editor.md @@ -10,9 +10,9 @@ ### 執行文字編輯器 -1. 單擊任務欄上的啟動器圖示 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器介面。 -2. 上下滾動滑鼠滾輪瀏覽或透過搜尋,找到文字編輯器圖示![deepin_editor](../common/deepin_editor.svg),單擊執行。 -3. 右鍵單擊![deepin_editor](../common/deepin_editor.svg),您可以: +1. 單擊任務欄上的啟動器圖示 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器介面。 +2. 上下滾動滑鼠滾輪瀏覽或透過搜尋,找到文字編輯器圖示 ![deepin_editor](../common/deepin_editor.svg)并打開。 +3. 在啟動器中,右鍵單擊![deepin_editor](../common/deepin_editor.svg),您可以: - 單擊 **建立桌面捷徑**,在桌面建立捷徑。 - 單擊 **釘選到Dock**,將應用程式固定到Dock。 @@ -27,7 +27,7 @@ ### 查看快捷鍵 -在文字編輯器介面,使用快捷鍵 **Ctrl + Shift + ?** 打開快捷鍵預覽介面。您也可以在設定介面查看快捷鍵。熟練地使用快捷鍵,將大大提升您的操作效率。 +在文字編輯器介面上,使用快捷鍵 **Ctrl + Shift + ?** 打開快捷鍵預覽介面。您也可以在設定介面查看快捷鍵。熟練地使用快捷鍵,將大大提升您的操作效率。 ![1|hotkey](fig/hotkey.png) @@ -37,8 +37,8 @@ - 建立標籤頁/視窗 - - 單擊標籤頁上的 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **建立新標籤頁** 或使用快捷鍵 **Ctrl + T** 建立一個新的標籤頁。 - - 單擊![icon_menu](../common/icon_menu.svg) > **建立新視窗** 或使用快捷鍵 **Ctrl + N** 建立一個新的視窗。 + - 單擊標籤頁上的 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **建立新標籤頁** 或使用組合鍵 **Ctrl + T** 建立一個新的標籤頁。 + - 單擊![icon_menu](../common/icon_menu.svg) > **建立新視窗** 或使用組合鍵 **Ctrl + N** 建立一個新的視窗。 - 調整標籤頁/視窗 @@ -50,9 +50,9 @@ 當視窗中僅有一個標籤頁時,關閉標籤頁的同時也會關閉視窗。 - - 使用 快捷鍵**Ctrl + W** 關閉目前標籤頁。 + - 使用快捷鍵 **Ctrl + W** 關閉目前標籤頁。 - 單擊標籤頁上的 ![close_icon](../common/close_icon.svg) 按鈕或者單擊滑鼠中鍵,關閉目前標籤頁。 - - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 來關閉標籤頁。 + - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 關閉標籤頁。 > ![notes](../common/notes.svg)說明:如果您的檔案發生了變化而沒有儲存,文字編輯器會在關閉前提示您儲存更改。 @@ -65,28 +65,28 @@ - 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)> **開啟檔案** 或使用快捷鍵 **Ctrl + O**,在彈出的視窗中選擇檔案。 ### 儲存檔案 -- 單擊 ![icon_menu](../common/icon_menu.svg)> **儲存** 或使用快捷鍵 **Ctrl + S** ,儲存目前檔案。 -- 單擊 ![icon_menu](../common/icon_menu.svg)> **另存新檔** 或使用快捷鍵 **Ctrl + Shift + S**, 另存目前檔案。 +- 單擊 ![icon_menu](../common/icon_menu.svg)> **儲存**或使用快捷鍵 **Ctrl + S**,儲存目前檔案。 +- 單擊 ![icon_menu](../common/icon_menu.svg)> **另存新檔** 或 使用快捷鍵**Ctrl + Shift + S**, 另存目前檔案。 ### 列印檔案 在文字編輯器中使用列印,需要您連接並配置好印表機。 -1. 單擊 ![icon_menu](../common/icon_menu.svg) > **列印** 或使用快捷鍵 **Ctrl + P** 打開列印預覽。 +1. 單擊 ![icon_menu](../common/icon_menu.svg) > **列印**,也可以使用快捷鍵 **Ctrl + P** 打開列印預覽。 2. 在列印預覽介面,您可以預覽檔案,選擇印表機並設定列印頁面。 3. 在列印預覽介面,單擊 **進階設定**,可配置紙張大小、列印方式等相關參數。 4. 單擊 **列印** 即可將檔案發送到印表機列印。 -![print](fig/print_setting.png) +![pagesetup](fig/printer.png) -![print](fig/advanced_setting.png) +![printer](fig/printer_setting.png) ## 編輯文字 ### 移動游標 -除了使用方向鍵和滑鼠單擊移動游標,您還可以使用以下快捷鍵迅速移動游標: +除使用方向鍵和滑鼠單擊移動游標,您還可以使用以下快捷鍵迅速移動游標: | 功能 | 快捷鍵 | | --------------- | ------------ | @@ -112,7 +112,7 @@ 您也可以使用快捷鍵 **Alt + U/L/C** 迅速切換大小寫。 -![toggle_case](fig/d_toggle_case.png) +![toggle_case](fig/toggle_case.png) ### 突顯文字 @@ -136,21 +136,21 @@ ### 尋找文字 -1. 單擊 ![menu](../common/icon_menu.svg)> **尋找** 或使用快捷鍵 **Ctrl + F** ,打開尋找視窗。 +1. 單擊 ![menu](../common/icon_menu.svg)> **尋找** 或使用組合鍵 **Ctrl + F**,打開尋找視窗。 2. 在尋找視窗中,輸入要搜尋的文字。 3. 單擊 **上一個**、**下一個** 逐個尋找,或使用 **Enter** 鍵尋找下一個匹配項。 4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉尋找視窗。 -> ![tips](../common/tips.svg)竅門:選中一段文字,再選擇尋找,則這段文字會自動出現在尋找視窗中。 +> ![tips](../common/tips.svg)竅門:選中一段文字,再進行搜尋,則這段文字會自動出現在尋找視窗中。 ### 取代文字 -1. 單擊 ![menu](../common/icon_menu.svg)> **取代** 或使用快捷鍵 **Ctrl + H**,打開取代視窗。 -2. 在取代為視窗中,輸入要取代的文字以及新文字。 +1. 單擊 ![menu](../common/icon_menu.svg)> **取代** 或使用組合鍵 **Ctrl + H**,打開取代視窗。 +2. 在取代視窗中,輸入要取代的文字以及新文字。 3. 單擊 **取代** 逐個取代,單擊 **取代剩餘部份**、**全部取代** 一次性取代剩餘的或所有的匹配文字。單擊 **跳過** 不取代目前匹配的文字。 4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉取代視窗。 ### 前往該行 -使用該功能可以迅速前往到任一行。在右鍵選單中選擇 **前往該行** 或者使用快捷键 **Ctrl + G**,輸入行號即可前往到相應行。 +使用該功能可以迅速前往到任一行。在右鍵選單中選擇 **前往該行** 或者使用组合键 **Ctrl + G**,輸入行號即可前往到相應行。 ### 編輯行 @@ -176,23 +176,40 @@ 1. 使用文字編輯器打開檔案,單擊右鍵,選擇 **開啟唯讀模式**。 2. 在唯讀模式下,單擊右鍵,選擇 **關閉唯讀模式**。 -![read_only](fig/d_read_only.png) +![read_only](fig/read_only.png) -![read_only](fig/d_read_only_02.png) +![read_only](fig/read_only_02.png) + +### 語音朗讀 + +1. 選取一段文字後,點選右鍵選擇 **語音朗讀**,系統將以語音唸出選取的文字。 + +2. 朗讀過程中,點選朗讀控制項上的關閉按鈕即可結束語音朗讀。 + + > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵選單中 **語音朗讀** 不可啟動,處置灰狀態。 + +![read_only](fig/reading.png) + +### **語音聽寫** + +1. 在文字編輯區域內,點選滑鼠右鍵選擇 **語音聽寫**,即可透過麥克風輸入語音,轉換的文字將插入到游標所在位置。 +2. 在聽寫模式下,點選聽寫控制項上的關閉按鈕即可結束語音聽寫。 + +![read-only](fig/listen.png) ### 列编辑 在文字編輯器介面,按住鍵盤上的 **Alt** 鍵不放,滑鼠左鍵單擊多列啟動列編輯模式,為多行程式碼同時編輯相同的內容,提高工作效率。 -![column mode](fig/column_mode.png) +![column mode](fig/column mode.png) ### 顏色標記 -在文字編輯器介面,單擊滑鼠右鍵選擇 **顏色標記**,在其下拉選單中進行選擇。 +在文字編輯器介面,滑鼠右鍵選擇 **顏色標記**,在其下拉選單中進行選擇。 -![color](fig/d_color_tag.png) +![color](fig/color_tag.png) - - **標記**:對某一行或某一段文字內容添加顏色標記;有8種顏色按鈕可供選擇。 + - **添加標記**:對某一行或某一段文字內容添加顏色標記;有8種顏色按鈕可供選擇。 + 將游標定在某一行,標記目前所在的行。 + 選中一段文字內容後,標記選中的文字內容。 - **標記所有**:將文字內容全部標記或對已選中的文字內容,在全文中標記匹配項;有8種顏色按鈕可供選擇。 @@ -210,8 +227,8 @@ - 添加書籤 + 滑鼠左鍵單擊 ![icon](../common/bookmark_normal_light.svg),為該行添加書籤。 - + 滑鼠右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加書籤。 - + 將游標定在文字中任意一行,使用快捷鍵 **Ctrl + F2** 為該行添加書籤。 + + 滑鼠右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + + 將游標定在文字中任意一行,使用組合鍵 **Ctrl + F2** 為該行添加一個書籤。 - 刪除書籤 @@ -225,15 +242,15 @@ ### 注釋管理 -在文字編輯器介面,您可以對副檔名為cpp 、java 、py等程式碼類型的檔案進行添加注釋的操作。 +在文字編輯器介面,您可對副檔名為cpp 、java 、py等程式碼類型的檔案進行添加注釋的操作。 - 添加注釋 - + 選中一段文字內容,單擊右鍵並選擇 **添加注釋**。 - + 選中一段文字內容,使用快捷鍵 **Alt + A** 添加注釋。 + + 選中一段文字內容,在右鍵選單選擇 **添加注釋**。 + + 選中一段文字內容,使用組合鍵 **Alt + A** 添加注釋。 - 取消注釋 - + 選中一段已添加注釋的文字內容,單擊右鍵並選擇 **取消注釋**。 - + 選中一段已添加注釋的文字內容,使用快捷鍵 **Alt + Z** 取消注釋。 + + 選中一段已添加注釋的文字內容,在右鍵選單中選擇 **取消注釋**。 + + 選中一段已添加注釋的文字內容,使用組合鍵 **Alt + Z** 取消注釋。 >![notes](../common/notes.svg)說明:支援不同程式碼語言的注釋,具體以實際為主。例如C,C#,Java注釋符號為 //,Python 注釋符號為 #。 @@ -250,14 +267,14 @@ 1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設定**。 2. 在基本設定選項,您可以選擇: - - 設定字體樣式,選擇字體和字體大小。 + - 設定字體樣式,選擇字體樣式和字體大小。 - 勾選 **文字換行**,在編輯區自動換行。 - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開目前層次或所有層次。 - 勾選 **顯示行號**,在左側欄顯示行號。 - 勾選**當前行高亮**,游標所在的行突顯顯示。 - - 勾選 **顯示書籤圖示**,在左側欄顯示書籤圖示。 - - 勾選 **顯示空白制符/制表符**,顯示文字中的空白字符和制表符,您也可以手動輸入或刪除空白字符和制表符。 - > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 來調節文字編輯器的預設字號。使用 **Ctrl + 0** 復原預設字號。 + - 勾選 **顯示書籤圖標**,在左側欄顯示書籤圖標。 + - 勾選 **顯示空白制符/制表符**,顯示文字中的空白字符和制表符,您也可手動輸入或刪除空白字符和制表符。 + > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 調節文字編輯器的預設字號。使用 **Ctrl + 0** 復原預設字號。 @@ -303,5 +320,4 @@ ### 退出 1. 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 -2. 單擊 **退出**。 - +2. 單擊 **退出**。 \ No newline at end of file diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/advanced_setting.png b/src/assets/deepin-editor/editor/zh_TW/fig/advanced_setting.png deleted file mode 100644 index 7ecf14a7f..000000000 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/advanced_setting.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/close.png b/src/assets/deepin-editor/editor/zh_TW/fig/close.png deleted file mode 100644 index eb5704b81..000000000 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/close.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/color_tag.png b/src/assets/deepin-editor/editor/zh_TW/fig/color_tag.png deleted file mode 100644 index 31ebc4156..000000000 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/color_tag.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/colortag.png b/src/assets/deepin-editor/editor/zh_TW/fig/colortag.png new file mode 100644 index 000000000..158d2be62 Binary files /dev/null and b/src/assets/deepin-editor/editor/zh_TW/fig/colortag.png differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/column_mode.png b/src/assets/deepin-editor/editor/zh_TW/fig/column_mode.png index efeb5f854..d21f318ee 100644 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/column_mode.png and b/src/assets/deepin-editor/editor/zh_TW/fig/column_mode.png differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/d_color_tag.png b/src/assets/deepin-editor/editor/zh_TW/fig/d_color_tag.png deleted file mode 100644 index a5923c736..000000000 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/d_color_tag.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/d_read-only_02.png b/src/assets/deepin-editor/editor/zh_TW/fig/d_read-only_02.png deleted file mode 100644 index db0fa1252..000000000 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/d_read-only_02.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/d_read_only.png b/src/assets/deepin-editor/editor/zh_TW/fig/d_read_only.png deleted file mode 100644 index af2fcf4fa..000000000 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/d_read_only.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/d_read_only_02.png b/src/assets/deepin-editor/editor/zh_TW/fig/d_read_only_02.png deleted file mode 100644 index 022dba9fb..000000000 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/d_read_only_02.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/d_toggle_case.png b/src/assets/deepin-editor/editor/zh_TW/fig/d_toggle_case.png deleted file mode 100644 index be9bdc902..000000000 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/d_toggle_case.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/highlight.png b/src/assets/deepin-editor/editor/zh_TW/fig/highlight.png index f16308bd6..d564bb7f4 100644 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/highlight.png and b/src/assets/deepin-editor/editor/zh_TW/fig/highlight.png differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/listen.png b/src/assets/deepin-editor/editor/zh_TW/fig/listen.png index d397f90ea..a6515ac19 100644 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/listen.png and b/src/assets/deepin-editor/editor/zh_TW/fig/listen.png differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/overview.png b/src/assets/deepin-editor/editor/zh_TW/fig/overview.png index 764cf82fc..92faa4130 100644 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/overview.png and b/src/assets/deepin-editor/editor/zh_TW/fig/overview.png differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/print_setting.png b/src/assets/deepin-editor/editor/zh_TW/fig/print_setting.png deleted file mode 100644 index 9d08dc8e9..000000000 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/print_setting.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/printer.png b/src/assets/deepin-editor/editor/zh_TW/fig/printer.png new file mode 100644 index 000000000..cc50a7a3d Binary files /dev/null and b/src/assets/deepin-editor/editor/zh_TW/fig/printer.png differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/printer_setting.png b/src/assets/deepin-editor/editor/zh_TW/fig/printer_setting.png new file mode 100644 index 000000000..ae803c9dd Binary files /dev/null and b/src/assets/deepin-editor/editor/zh_TW/fig/printer_setting.png differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/read_only.png b/src/assets/deepin-editor/editor/zh_TW/fig/read_only.png index 96658be2a..1bbf8d415 100644 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/read_only.png and b/src/assets/deepin-editor/editor/zh_TW/fig/read_only.png differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/read_only_02.png b/src/assets/deepin-editor/editor/zh_TW/fig/read_only_02.png index a5f735b47..607c69111 100644 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/read_only_02.png and b/src/assets/deepin-editor/editor/zh_TW/fig/read_only_02.png differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/reading.png b/src/assets/deepin-editor/editor/zh_TW/fig/reading.png index 7fe6846cd..f14caf7c6 100644 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/reading.png and b/src/assets/deepin-editor/editor/zh_TW/fig/reading.png differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/text_translation.png b/src/assets/deepin-editor/editor/zh_TW/fig/text_translation.png deleted file mode 100644 index f76230034..000000000 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/text_translation.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/toggle_case.png b/src/assets/deepin-editor/editor/zh_TW/fig/toggle_case.png deleted file mode 100644 index 32351990a..000000000 Binary files a/src/assets/deepin-editor/editor/zh_TW/fig/toggle_case.png and /dev/null differ diff --git a/src/assets/deepin-editor/editor/zh_TW/fig/togglecase.png b/src/assets/deepin-editor/editor/zh_TW/fig/togglecase.png new file mode 100644 index 000000000..d6ea22c90 Binary files /dev/null and b/src/assets/deepin-editor/editor/zh_TW/fig/togglecase.png differ diff --git a/src/assets/deepin-editor/editor/zh_TW/p_editor.md b/src/assets/deepin-editor/editor/zh_TW/p_editor.md index c82f1d572..ca6298f5d 100644 --- a/src/assets/deepin-editor/editor/zh_TW/p_editor.md +++ b/src/assets/deepin-editor/editor/zh_TW/p_editor.md @@ -78,9 +78,9 @@ 3. 在列印預覽介面,單擊 **進階設定**,可配置紙張大小、列印方式等相關參數。 4. 單擊 **列印** 即可將檔案發送到印表機列印。 -![print](fig/print_setting.png) +![pagesetup](fig/printer.png) -![print](fig/advanced_setting.png) +![printer](fig/printer_setting.png) ## 編輯文字 @@ -182,29 +182,26 @@ ### 語音朗讀 -在「控制中心」>「輔助功能」中開啟語音朗讀、語音聽寫功能後,可以執行如下操作。 +1. 選取一段文字後,點選右鍵選擇 **語音朗讀**,系統將以語音唸出選取的文字。 -1. 單擊右鍵,選擇 **語音聽寫**,使用者透過麥克風語音輸入後,轉譯文字將被編輯在檔案中。 -2. 選擇一段文字後,單擊右鍵,選擇 **語音朗讀**,語音播報選中的文字。 +2. 朗讀過程中,點選朗讀控制項上的關閉按鈕即可結束語音朗讀。 > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵選單中 **語音朗讀** 不可啟動,處置灰狀態。 - ![read_only](fig/reading.png) -### 文字翻譯 - -在「控制中心」>「輔助功能」中開啟文字翻譯並選擇語言後,可以執行如下操作。 +### **語音聽寫** -1. 在文字編輯器介面選擇一段文字後,單擊右鍵,選擇 **文字翻譯**,可將該段文字內容翻譯成目標語言。 +1. 在文字編輯區域內,點選滑鼠右鍵選擇 **語音聽寫**,即可透過麥克風輸入語音,轉換的文字將插入到游標所在位置。 +2. 在聽寫模式下,點選聽寫控制項上的關閉按鈕即可結束語音聽寫。 -![text](fig/text_translation.png) +![read-only](fig/listen.png) ### 列编辑 在文字編輯器介面,按住鍵盤上的 **Alt** 鍵不放,滑鼠左鍵單擊多列啟動列編輯模式,為多行程式碼同時編輯相同的內容,提高工作效率。 -![column mode](fig/column_mode.png) +![column mode](fig/column mode.png) ### 顏色標記 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/+.svg b/src/assets/loongarch64/deepin-editor/editor/common/+.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/-.svg b/src/assets/loongarch64/deepin-editor/editor/common/-.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/0.svg b/src/assets/loongarch64/deepin-editor/editor/common/0.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/A.svg b/src/assets/loongarch64/deepin-editor/editor/common/A.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/Alt.svg b/src/assets/loongarch64/deepin-editor/editor/common/Alt.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/C.svg b/src/assets/loongarch64/deepin-editor/editor/common/C.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/Ctrl.svg b/src/assets/loongarch64/deepin-editor/editor/common/Ctrl.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/Enter.svg b/src/assets/loongarch64/deepin-editor/editor/common/Enter.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/Esc.svg b/src/assets/loongarch64/deepin-editor/editor/common/Esc.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/F.svg b/src/assets/loongarch64/deepin-editor/editor/common/F.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/F2.svg b/src/assets/loongarch64/deepin-editor/editor/common/F2.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/G.svg b/src/assets/loongarch64/deepin-editor/editor/common/G.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/H.svg b/src/assets/loongarch64/deepin-editor/editor/common/H.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/L.svg b/src/assets/loongarch64/deepin-editor/editor/common/L.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/N.svg b/src/assets/loongarch64/deepin-editor/editor/common/N.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/O.svg b/src/assets/loongarch64/deepin-editor/editor/common/O.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/P.svg b/src/assets/loongarch64/deepin-editor/editor/common/P.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/QM.svg b/src/assets/loongarch64/deepin-editor/editor/common/QM.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/S.svg b/src/assets/loongarch64/deepin-editor/editor/common/S.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/Shift.svg b/src/assets/loongarch64/deepin-editor/editor/common/Shift.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/T.svg b/src/assets/loongarch64/deepin-editor/editor/common/T.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/U.svg b/src/assets/loongarch64/deepin-editor/editor/common/U.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/W.svg b/src/assets/loongarch64/deepin-editor/editor/common/W.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/Z.svg b/src/assets/loongarch64/deepin-editor/editor/common/Z.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/attention.svg b/src/assets/loongarch64/deepin-editor/editor/common/attention.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/bookmark_normal_light.svg b/src/assets/loongarch64/deepin-editor/editor/common/bookmark_normal_light.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/bookmarkbig_checked_light.svg b/src/assets/loongarch64/deepin-editor/editor/common/bookmarkbig_checked_light.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/close_icon.svg b/src/assets/loongarch64/deepin-editor/editor/common/close_icon.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/deepin-editor.svg b/src/assets/loongarch64/deepin-editor/editor/common/deepin-editor.svg deleted file mode 100755 index a8e6fb969..000000000 --- a/src/assets/loongarch64/deepin-editor/editor/common/deepin-editor.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/assets/loongarch64/deepin-editor/editor/common/deepin_editor.svg b/src/assets/loongarch64/deepin-editor/editor/common/deepin_editor.svg old mode 100755 new mode 100644 index ffb562a44..0d79a2821 --- a/src/assets/loongarch64/deepin-editor/editor/common/deepin_editor.svg +++ b/src/assets/loongarch64/deepin-editor/editor/common/deepin_editor.svg @@ -1,23 +1,61 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + apps/128/deepin-editor + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/deepin-editor/editor/common/deepin_launcher.svg b/src/assets/loongarch64/deepin-editor/editor/common/deepin_launcher.svg old mode 100755 new mode 100644 index 5793b3846..55c2fd125 --- a/src/assets/loongarch64/deepin-editor/editor/common/deepin_launcher.svg +++ b/src/assets/loongarch64/deepin-editor/editor/common/deepin_launcher.svg @@ -1,43 +1,92 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + places/128/deepin-launcher + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + \ No newline at end of file diff --git a/src/assets/loongarch64/deepin-editor/editor/common/icon_menu.svg b/src/assets/loongarch64/deepin-editor/editor/common/icon_menu.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/next.svg b/src/assets/loongarch64/deepin-editor/editor/common/next.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/next_down.svg b/src/assets/loongarch64/deepin-editor/editor/common/next_down.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/notes.svg b/src/assets/loongarch64/deepin-editor/editor/common/notes.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/plus_icon.svg b/src/assets/loongarch64/deepin-editor/editor/common/plus_icon.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/common/tips.svg b/src/assets/loongarch64/deepin-editor/editor/common/tips.svg old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/editor.md b/src/assets/loongarch64/deepin-editor/editor/en_US/editor.md index 934d997bf..69d47aab1 100644 --- a/src/assets/loongarch64/deepin-editor/editor/en_US/editor.md +++ b/src/assets/loongarch64/deepin-editor/editor/en_US/editor.md @@ -11,22 +11,21 @@ Text Editor is a simple text editing tool. You can use it to write a simple text ### Run Text Editor 1. Click the Launcher icon ![deepin_launcher](../common/deepin_launcher.svg) in the Dock to enter the Launcher interface. -2. Locate Text Editor ![deepin_editor](../common/deepin_editor.svg)by scrolling the mouse wheel or searching "text editor" in the Launcher interface and click it to run. -3. In Launcher, right-click Text Editor and you can: - +2. Locate Text Editor ![deepin_editor](../common/deepin_editor.svg) by scrolling the mouse wheel or searching "text editor" in the Launcher interface, and click it to run. +3. In Launcher, right-click Text Editor to: - Click **Send to desktop** to create a desktop shortcut. - Click **Send to dock** to fix it in the Dock. - - Click **Add to startup** to add it to startup and it will automatically run when system boots. + - Click **Add to startup** to add the application to startup, and it will automatically run when the system starts up. ### Exit Text Editor - On the Text Editor interface, click ![close](../common/close_icon.svg) to exit. -- On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg) > **Exit** to exit. -- Right-click ![deepin_editor](../common/deepin_editor.svg) in the Dock and select **Close All** to exit. +- On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg)> **Exit** to exit. +- Right-click ![deepin_editor](../common/deepin_editor.svg) in the Dock, and select **Close All** to exit. ### View Shortcuts -On the Text Editor Interface, press **Ctrl + Shift + ?** to view all the shortcuts. You can also check shortcuts in Settings. Proficiency in shortcuts will greatly improve your efficiency. +On the Text Editor Interface, press **Ctrl** + **Shift** + **?** to view all the shortcuts. You can also check shortcuts in the Settings. Proficiency in shortcuts will greatly improve your efficiency. ![1|hotkey](fig/hotkey.png) @@ -35,7 +34,7 @@ On the Text Editor Interface, press **Ctrl + Shift + ?** to view all the shortcu ### Manage Tabs - Create New Tabs/Windows - - Click ![plus_icon](../common/+.svg) or ![icon_menu](../common/icon_menu.svg)> **New tab** on the title bar or press **Ctrl + T** to create a new tab. + - Click ![plus_icon](../common/+.svg)or ![icon_menu](../common/icon_menu.svg)> **New tab** on the title bar or press **Ctrl + T** to create a new tab. - Click ![icon_menu](../common/icon_menu.svg)> **New window** or press **Ctrl + N** to create a new window. - Adjust Tabs/Windows @@ -68,16 +67,16 @@ You can open one or multiple text files at one time in the following ways, and t ### Print Files -To print a file in Text Editor, you should connect and set up the printer first. +To print a file in the Text Editor interface, you should connect and set up the printer first. 1. Click ![icon_menu](../common/icon_menu.svg)> **Print**, or press **Ctrl + P** to open the print preview interface. -2. On the preview interface, preview the document,select a printer and set the printing page. -3. Click the **Advanced** option on the preview interface to select parameters including paper size and layout. -4. Click **Print** to start printing. +2. On the preview interface, preview the document, select a printer, and set the printing page. +3. Click the **Advanced** option on the preview interface to select parameters including paper size and layout. +4. Click **Print** to start printing at the printer selected. -![preview](fig/preview.png) +![pagesetup](fig/printer.png) -![pagesetup](fig/advanced-preview.png) +![printer](fig/printer_setting.png) ## Edit Texts @@ -107,9 +106,9 @@ It helps you change the case of selected text. You can change it to lowercase, u 2. Right-click and select **Change Case**. 3. Choose **Upper Case**, **Lower Case**, or **Capitalize**. The changes will take effect immediately. -You can also use **Alt** + **U / L / C** to quickly switch the cases. +You can also use **Alt** + **U/L/C** to quickly switch the cases. -![changecase](fig/d_changecase.png) +![togglecase](fig/togglecase.png) ### Highlight Texts Text Editor supports highlighting different kinds of texts. @@ -131,26 +130,27 @@ In addition to deleting characters one by one, you can quickly delete characters ### Undo -If you make an incorrect operation, press **Ctrl + Z** to undo it, or right-click to select **Undo**. +If you make an incorrect operation, press **Ctrl + Z** to undo it, or right-click and select **Undo**. ### Find Texts -1. Click ![menu](../common/icon_menu.svg) and select **Find**, or press **Ctrl** + **F** to open the "Find" box below. +1. Click ![menu](../common/icon_menu.svg) > **Find**, or press **Ctrl + F** to open the **Find** box in the bottom of the Text Editor interface. 2. Input the text you want to find. -3. Click **Previous** /**Next** to find each match, or press the **Enter** key to find the next match. +3. Click **Previous**/**Next** to find each match, or press the **Enter** key to find the next match. 4. Press the **Esc** key or click the close icon to close the dialog box. > ![tips](../common/tips.svg)Tips: Select the text and conduct search. The text selected will be automatically displayed in the **Find** box. ### Replace Texts -1. Click ![menu](../common/icon_menu.svg), and select **Replace**, or press **Ctrl + H** to open the **Replace** box below. +1. Click ![menu](../common/icon_menu.svg) > **Replace**, or press **Ctrl + H** to open the **Replace** box in the bottom of the Text Editor interface. 2. Input the text to be replaced and the new text. -3. Click **Replace** to replace the matches one by one and click **Replace Rest** and **Replace All** to replace the rest or all the matches at once. Click **Skip** to skip the current matching text. +3. Click **Replace** to replace the matches one by one, and click **Replace Rest** and **Replace All** to replace the rest or all the matches at once. Click **Skip** to skip the current matching text. 4. Press **Esc** or click the close icon to close the dialog box. ### Go to Line Use Go to Line to jump to the specific line directly. -Right-click and select **Go to Line**, or press **Ctrl + G** and then input the line number to go to that line. + +Right-click and select **Go to Line**; or press **Ctrl + G**, and then input the line number to go to that line. ### Edit Line @@ -173,15 +173,28 @@ Use the shortcuts below to edit lines easily: ### Enable/Disable Read-only Mode -1. Open the document with Text Editor and right-click to select **Turn on Read-only Mode**. +1. Open the document with Text Editor, right-click on the Text Editor interface, and select **Turn on Read-Only mode**. +1. Right-click on the Text Editor interface, and select **Turn off Read-Only mode** under the read-only mode. -![readonly](fig/d_readonly.png) -              +![readonly](fig/read_only.png) -2. Right-click to select **Turn off Read-only Mode** under the read-only mode. +![read-only](fig/read_only_02.png) -![read-only](fig/d_turnoffreadonly.png) -              +### Text to Speech + +1. Select a paragraph of texts. Right-click it and select **Text to Speech**. The texts selected will be broadcast. +1. During playback, you can stop the **Text to Speech** by clicking the close button on the reading control. + +> ![notes](../common/notes.svg) Notes: The **Text to Speech** option in the right-click menu is grayed out and cannot be activated when no text is selected. + +![read-only](fig/reading.png) + +### Speech to Text + +1. In the text editor area, right-click and select **Speech to Text**. Input speech through the microphone to insert transcribed text at the cursor position. +2. During dictation, you can stop **Speech to Text** by clicking the close button on the dictation control. + +![read-only](fig/listen.png) ### Use Column Mode @@ -191,9 +204,9 @@ Press and hold the **Alt** key on the keyboard, drag the mouse to select multipl ### Color Mark -Select the text to be marked in Text Editor, right-click to select **Color Mark** and select the corresponding options in the drop-down list as needed. +Select the text to be marked in Text Editor, right-click to select **Color Mark**, and select the corresponding options in the drop-down list as needed. -![colormark](fig/d_colormark.png) +![color](fig/colortag.png)               - Select **Mark** to mark a certain line or a paragraph of texts. You can choose from 8 colors displayed through icons. @@ -205,39 +218,34 @@ Select the text to be marked in Text Editor, right-click to select **Color Mark* - Select **Clear Last Mark** to cancel the last mark operation. - Select **Clear All Marks** to cancel all the current marks. - ### Manage Bookmarks -Check **Show bookmarks icon** in **Settings** and you can add a bookmark for any line on the Text Editor interface. The icon ![icon](../common/bookmark_normal_light.svg) shows up when you move the cursor to any line in the left column, and the icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) will appear after a bookmark is successfully added. +Check **Show bookmarks icon** in **Settings** and you can add a bookmark for any current line on the Text Editor interface. The icon ![icon](../common/bookmark_normal_light.svg) shows up when you move the cursor to any line in the left column, and the icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) will appear after a bookmark is successfully added. - Add bookmarks - + Click ![icon](../common/bookmark_normal_light.svg) to add a bookmark for the line. - + Right-click ![icon](../common/bookmark_normal_light.svg) and select **Add bookmark** to add a bookmark for the line. - + Place the cursor on any line and press **Ctrl + F2** to add a bookmark for the line. - -- Delete bookmarks + + Right-click ![icon](../common/bookmark_normal_light.svg) and select **Add bookmark** to add a bookmark for the line. + + Place the cursor on any line, and press **Ctrl + F2** to add a bookmark for the line. +- Delete bookmarks + Click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) to delete the bookmark of the line directly. - + Right-click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) to select **Remove Bookmark** to delete the bookmark in the line. - + Right-click a bookmark to select **Remove All Bookmarks** to delete all the bookmarks in the text. - >![Notes](../common/notes.svg)Notes: The bookmark icon appears only when cursor is hovered over to the left of the line number in the left column; when it's moved beyond the left bookmark column, the bookmark icon will disappear. The bookmark icon will always be displayed after being added. - + + Right-click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) , and select **Remove Bookmark** to delete the bookmark in the line. + + Right-click a bookmark, and select **Remove All Bookmarks** to delete all the bookmarks in the text. + >![Notes](../common/notes.svg) Notes: The bookmark icon appears only when cursor is hovered over to the left of the line number in the left column; when it's moved beyond the left bookmark column, the bookmark icon will disappear. The bookmark icon will always be displayed after being added. ### Manage Comments You can add comments to any text with a code type suffix, such as cpp and java, among others. - Add comments - - Select the text needed and right-click to select **Add Comment**. - - Select the text needed and press **Alt + A** to add comments. + - Select the text needed, and right-click to select **Add Comment**. + - Select the text needed, and press **Alt + A** to add comments. - Cancel comments - - Select the text with comments, and right-click to select **Remove Comment**. -- Select the text with comments, and press **Alt + Z** to cancel comments. - + - Select the text with comments, and right-click to select **Remove Comment**. + - Select the text with comments, and press **Alt + Z** to cancel comments. -> ![notes](../common/notes.svg)Notes: This supports comments in different languages. Please refer to actual conditions for detailed information. For example, comment symbol for C, C# and Java is // and comment symbol for Python is #. +> ![notes](../common/notes.svg) Notes: This supports comments in different languages. Please refer to actual conditions for detailed information. For example, comment symbol for C, C# and Java is //, and comment symbol for Python is #. ## Main Menu @@ -245,55 +253,54 @@ On the main menu, you can Create New Windows, Create New Files, [Find Texts](#Fi ### Settings -You can set the basic information, shortcuts and advanced information in settings. +You can set the basic information, shortcuts, and advanced information in settings. #### Basic Settings -Click ![icon_menu](../common/icon_menu.svg)> **Settings** and you can perform the following in the Settings window: +Click ![icon_menu](../common/icon_menu.svg)> **Settings** and you can perform the following in the **Basic** option: - Select the Font and Font Size. - Check or uncheck **Word wrap**. -- Check **Code folding flag** and ![next](../common/next.svg) or ![next](../common/next_down.svg) are displayed in the edit area. Right-click to select **Fold/Unfold Current Level** or **Fold/Unfold All** to perform the corresponding operations. +- Check **Code folding flag** and ![next](../common/next.svg) or ![next](../common/next_down.svg) are displayed in the edit area. Right-click and select **Fold/Unfold Current Level** or **Fold/Unfold All** to perform the corresponding operations. - Check **Show line numbers** to display the line number in the edit area. - Check **Highlight current line** to highlight the current line. - Check **Show bookmarks icon** to display the bookmarks in the text. - Check **Show whitespaces and tabs** to display all the white spaces and tabs. You can also input or delete white spaces and tabs manually. -> ![tips](../common/tips.svg)Tips: You can also use **Ctrl + “+”/ “-”** to adjust the font size, and press **Ctrl + 0** to restore default font size. +> ![tips](../common/tips.svg) Tips: You can also use **Ctrl + “+”/ “-”** to adjust the font size, and press **Ctrl + 0** to restore to default font size. #### Shortcuts Settings 1. Click ![icon_menu](../common/icon_menu.svg)> **Settings** to view the current shortcut in the **Shortcuts** option. 2. Select a keymap in **Shortcuts** and view the shortcuts. 3. You can click and customize new shortcuts. -> ![notes](../common/notes.svg)Notes: You can choose a proper keymap to fit your habits, including standard keymap, Emacs keymap, or customize it as you like. +> ![notes](../common/notes.svg) Notes: You can choose a proper keymap to fit your habits, including standard keymap, Emacs keymap, or customize it as you like. #### Advanced Settings 1. Click ![icon_menu](../common/icon_menu.svg)> **Settings**. 2. In the **Advanced** option, you can set: - - Window size: Normal, Maximum, or Full screen; - - Tab width: The indentation width when pressing Tab. - + - Window size: Normal, Maximum, or Fullscreen; + - Tab width: The width of a tab character. ### Theme -The window theme provides three theme types, namely Light Theme, Dark Theme and System Theme. +The window theme provides three theme types, namely Light Theme, Dark Theme, and System Theme. 1. On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg). -2. Click **Theme** to select one theme. +2. Click **Theme** to select one theme. ### Help -1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). -2. Select **Help** to view the manual of Text Editor. +1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). +2. Select **Help** to view the manual of Text Editor. ### About 1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). -2. Select **About** to view the version and introduction of Text Editor. +2. Select **About** to view the version and introduction of Text Editor. ### Exit 1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). -2. Click **Exit** to exit Text Editor. +2. Click **Exit** to exit Text Editor. \ No newline at end of file diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/advanced-preview.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/advanced-preview.png deleted file mode 100644 index b12ff1347..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/advanced-preview.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/changecase.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/changecase.png deleted file mode 100644 index 0f94f0f94..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/changecase.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/colormark.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/colormark.png deleted file mode 100644 index ed393530f..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/colormark.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/colortag.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/colortag.png new file mode 100644 index 000000000..40dc4ed25 Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/colortag.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/column_mode.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/column_mode.png index bc4784484..13571c29d 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/column_mode.png and b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/column_mode.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_changecase.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_changecase.png deleted file mode 100644 index 53176e937..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_changecase.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_colormark.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_colormark.png deleted file mode 100644 index ee19302f2..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_colormark.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_readonly.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_readonly.png deleted file mode 100644 index 13c25165f..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_readonly.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_turnoffreadonly.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_turnoffreadonly.png deleted file mode 100644 index 12a65856d..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/d_turnoffreadonly.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/highlight.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/highlight.png index 0b561fa4c..e61661721 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/highlight.png and b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/highlight.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/listen.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/listen.png new file mode 100644 index 000000000..52f1a2914 Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/listen.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/mark.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/mark.png deleted file mode 100644 index 2d49df34f..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/mark.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/overview.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/overview.png index ce8e1b6c3..803054996 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/overview.png and b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/overview.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/overviewx2.jpg b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/overviewx2.jpg deleted file mode 100644 index 626835806..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/overviewx2.jpg and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/pagesetup.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/pagesetup.png deleted file mode 100644 index af37bba80..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/pagesetup.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/preview.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/preview.png deleted file mode 100644 index 88ad6e0b5..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/preview.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/printer.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/printer.png index e7e386de1..88ad6e0b5 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/printer.png and b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/printer.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/printer_setting.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/printer_setting.png new file mode 100644 index 000000000..807f80c8f Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/printer_setting.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/read_only.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/read_only.png index 6a67a2375..4bc561aa0 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/read_only.png and b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/read_only.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/read_only_02.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/read_only_02.png index 8dac668ec..23a9e53a5 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/read_only_02.png and b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/read_only_02.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/reading.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/reading.png index 0089c2cf2..7a78ef9e7 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/reading.png and b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/reading.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/shortcuts.jpg b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/shortcuts.jpg deleted file mode 100644 index a109071e5..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/shortcuts.jpg and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/shortcutsx2.jpg b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/shortcutsx2.jpg deleted file mode 100644 index d595feed2..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/shortcutsx2.jpg and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/texttospeech.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/texttospeech.png deleted file mode 100644 index 41c379568..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/texttospeech.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/togglecase.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/togglecase.png new file mode 100644 index 000000000..6c9fb8766 Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/togglecase.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/translate.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/translate.png deleted file mode 100644 index 7c2999b7c..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/translate.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/translation.png b/src/assets/loongarch64/deepin-editor/editor/en_US/fig/translation.png deleted file mode 100644 index 6b401d0b3..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/en_US/fig/translation.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/en_US/p_editor.md b/src/assets/loongarch64/deepin-editor/editor/en_US/p_editor.md new file mode 100644 index 000000000..69d47aab1 --- /dev/null +++ b/src/assets/loongarch64/deepin-editor/editor/en_US/p_editor.md @@ -0,0 +1,306 @@ +# Text Editor|deepin-editor| + +## Overview + +Text Editor is a simple text editing tool. You can use it to write a simple text document, or make it a code editing tool with its advanced features which support code syntax highlighting. + +![overview](fig/overview.png) + +## Guide + +### Run Text Editor + +1. Click the Launcher icon ![deepin_launcher](../common/deepin_launcher.svg) in the Dock to enter the Launcher interface. +2. Locate Text Editor ![deepin_editor](../common/deepin_editor.svg) by scrolling the mouse wheel or searching "text editor" in the Launcher interface, and click it to run. +3. In Launcher, right-click Text Editor to: + - Click **Send to desktop** to create a desktop shortcut. + - Click **Send to dock** to fix it in the Dock. + - Click **Add to startup** to add the application to startup, and it will automatically run when the system starts up. + +### Exit Text Editor + +- On the Text Editor interface, click ![close](../common/close_icon.svg) to exit. +- On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg)> **Exit** to exit. +- Right-click ![deepin_editor](../common/deepin_editor.svg) in the Dock, and select **Close All** to exit. + +### View Shortcuts + +On the Text Editor Interface, press **Ctrl** + **Shift** + **?** to view all the shortcuts. You can also check shortcuts in the Settings. Proficiency in shortcuts will greatly improve your efficiency. + +![1|hotkey](fig/hotkey.png) + +## Basic Operations + +### Manage Tabs + +- Create New Tabs/Windows + - Click ![plus_icon](../common/+.svg)or ![icon_menu](../common/icon_menu.svg)> **New tab** on the title bar or press **Ctrl + T** to create a new tab. + - Click ![icon_menu](../common/icon_menu.svg)> **New window** or press **Ctrl + N** to create a new window. + +- Adjust Tabs/Windows + - Drag the tab in the same window to reorder tabs. + - Scroll the mouse wheel on the title of a tab to reorder tabs in the same window. + - Move the tab out of the window to create a new window or move the tab from one window to another. + +- Close Tabs /Windows + + The window will be closed as well when there is only one tab in the window. + + - Press **Ctrl + W** to close the file on the file interface. + - Move the cursor to the file title, and click the ![close](../common/close_icon.svg) icon there or the mouse middle button to close the file. + - Right-click the file title and select **Close tab** or **Close other tabs** or **More options** to close the tabs. + +> ![notes](../common/notes.svg) Notes: If you make changes to the file but does not save it, you will be prompted by Text Editor to save before closing the file. + +### Open Files + +You can open one or multiple text files at one time in the following ways, and the selected file will open in the new tab: + +- Drag the file directly to the Text Editor interface or the Text Editor icon. +- Right-click the file and select **Open with** > **Text Editor**. After selecting Text Editor as the default application for text files in Control Center, you can double-click the file to open it directly. +- On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg)> **Open file**, or use the shortcuts **Ctrl + O** to open the file in File Manager. + +### Save Files + +- Press **Ctrl + S** or click ![icon_menu](../common/icon_menu.svg)> **Save** to save the current document. +- Press **Ctrl + Shift + S** or click ![icon_menu](../common/icon_menu.svg)> **Save as** to save the file as a new one. + +### Print Files + +To print a file in the Text Editor interface, you should connect and set up the printer first. + +1. Click ![icon_menu](../common/icon_menu.svg)> **Print**, or press **Ctrl + P** to open the print preview interface. +2. On the preview interface, preview the document, select a printer, and set the printing page. +3. Click the **Advanced** option on the preview interface to select parameters including paper size and layout. +4. Click **Print** to start printing at the printer selected. + +![pagesetup](fig/printer.png) + +![printer](fig/printer_setting.png) + +## Edit Texts + +### Move Cursor + +In addition to the arrow keys and mouse clicks, you can also use the following shortcuts to move the cursor quickly: + +| Function | Shortcuts | +| --------------- | ------------ | +| Save cursor position | Ctrl + Shift + > | +| Reset cursor position (Jump to cursor last saving position) | Ctrl + Shift + < | +| Forward one word (Jump forward over one word) | Ctrl + Right | +| Backward one word (Jump backward over one word) | Ctrl + Left | +| Move to end of line | End | +| Move to start of line | Home | +| Move to end of text | Ctrl + End | +| Move to start of text | Ctrl + Home | +| Move to line indentation | Ctrl + M | +| Forward over a pair (Jump forward after the right parenthesis) | Alt + P | +| Backward over a pair (Jump backward before the left parenthesis) | Alt + N | + +### Change Cases + +It helps you change the case of selected text. You can change it to lowercase, uppercase, or capitalize the initial. + +1. Select the text. +2. Right-click and select **Change Case**. +3. Choose **Upper Case**, **Lower Case**, or **Capitalize**. The changes will take effect immediately. + +You can also use **Alt** + **U/L/C** to quickly switch the cases. + +![togglecase](fig/togglecase.png) + +### Highlight Texts +Text Editor supports highlighting different kinds of texts. + +Click the triangle symbol at the far right corner of the status bar at the bottom, and select the type of text you want to highlight. The corresponding contents in the text will be highlighted automatically. + +![highlight](fig/highlight.png) + +### Delete Texts + +In addition to deleting characters one by one, you can quickly delete characters by using the following shortcuts: + +| Function | Shortcuts | +| --------------- | ------------ | +| Delete to end of line | Ctrl + K | +| Delete current line | Ctrl + Shift + K | +| Delete one word backward | Alt + Shift + N | +| Delete one word forward | Alt + Shift + M | + +### Undo + +If you make an incorrect operation, press **Ctrl + Z** to undo it, or right-click and select **Undo**. + +### Find Texts + +1. Click ![menu](../common/icon_menu.svg) > **Find**, or press **Ctrl + F** to open the **Find** box in the bottom of the Text Editor interface. +2. Input the text you want to find. +3. Click **Previous**/**Next** to find each match, or press the **Enter** key to find the next match. +4. Press the **Esc** key or click the close icon to close the dialog box. + +> ![tips](../common/tips.svg)Tips: Select the text and conduct search. The text selected will be automatically displayed in the **Find** box. + +### Replace Texts +1. Click ![menu](../common/icon_menu.svg) > **Replace**, or press **Ctrl + H** to open the **Replace** box in the bottom of the Text Editor interface. +2. Input the text to be replaced and the new text. +3. Click **Replace** to replace the matches one by one, and click **Replace Rest** and **Replace All** to replace the rest or all the matches at once. Click **Skip** to skip the current matching text. +4. Press **Esc** or click the close icon to close the dialog box. + +### Go to Line +Use Go to Line to jump to the specific line directly. + +Right-click and select **Go to Line**; or press **Ctrl + G**, and then input the line number to go to that line. + +### Edit Line + +Use the shortcuts below to edit lines easily: + +| Function | Shortcuts | +| ------------ | ------------ | +| New line above (Insert one line above) | Ctrl + Enter | +| New line below (Insert one line below) | Ctrl + Shift + Enter | +| Duplicate line | Ctrl + Shift + D | +| Swap line up (Swap the current line with above line) | Ctrl + Shift + Up | +| Swap line down (Swap the current line with below line) | Ctrl + Shift + Down | +| Scroll up one line | Super + Shift + Up | +| Scroll down one line | Super + Shift + Down | +| Mark | Alt + H | +| Unmark | Alt + Shift + H | +| Copy line | Super + C | +| Cut line | Super + X | +| Merge lines | Ctrl + J | + +### Enable/Disable Read-only Mode + +1. Open the document with Text Editor, right-click on the Text Editor interface, and select **Turn on Read-Only mode**. +1. Right-click on the Text Editor interface, and select **Turn off Read-Only mode** under the read-only mode. + +![readonly](fig/read_only.png) + +![read-only](fig/read_only_02.png) + +### Text to Speech + +1. Select a paragraph of texts. Right-click it and select **Text to Speech**. The texts selected will be broadcast. +1. During playback, you can stop the **Text to Speech** by clicking the close button on the reading control. + +> ![notes](../common/notes.svg) Notes: The **Text to Speech** option in the right-click menu is grayed out and cannot be activated when no text is selected. + +![read-only](fig/reading.png) + +### Speech to Text + +1. In the text editor area, right-click and select **Speech to Text**. Input speech through the microphone to insert transcribed text at the cursor position. +2. During dictation, you can stop **Speech to Text** by clicking the close button on the dictation control. + +![read-only](fig/listen.png) + +### Use Column Mode + +Press and hold the **Alt** key on the keyboard, drag the mouse to select multiple lines, and edit the identical contents in multiple lines of codes efficiently by using the column mode function. + +![mode](fig/column_mode.png) + +### Color Mark + +Select the text to be marked in Text Editor, right-click to select **Color Mark**, and select the corresponding options in the drop-down list as needed. + +![color](fig/colortag.png) +              + +- Select **Mark** to mark a certain line or a paragraph of texts. You can choose from 8 colors displayed through icons. + - Place the cursor at any line and you can mark the current line. + - Select a paragraph of texts and you can mark the selected texts. +- Select **Mark All** to mark all the contents in Text Editor, or mark all the matching contents of selected texts in Text Editor. You can choose from 8 colors displayed through icons. + - Place the cursor at any line and you can mark all contents. + - Select any content and you can mark the same content in the whole document. +- Select **Clear Last Mark** to cancel the last mark operation. +- Select **Clear All Marks** to cancel all the current marks. + +### Manage Bookmarks + +Check **Show bookmarks icon** in **Settings** and you can add a bookmark for any current line on the Text Editor interface. The icon ![icon](../common/bookmark_normal_light.svg) shows up when you move the cursor to any line in the left column, and the icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) will appear after a bookmark is successfully added. + +- Add bookmarks + + Click ![icon](../common/bookmark_normal_light.svg) to add a bookmark for the line. + + Right-click ![icon](../common/bookmark_normal_light.svg) and select **Add bookmark** to add a bookmark for the line. + + Place the cursor on any line, and press **Ctrl + F2** to add a bookmark for the line. + +- Delete bookmarks + + Click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) to delete the bookmark of the line directly. + + Right-click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) , and select **Remove Bookmark** to delete the bookmark in the line. + + Right-click a bookmark, and select **Remove All Bookmarks** to delete all the bookmarks in the text. + >![Notes](../common/notes.svg) Notes: The bookmark icon appears only when cursor is hovered over to the left of the line number in the left column; when it's moved beyond the left bookmark column, the bookmark icon will disappear. The bookmark icon will always be displayed after being added. + +### Manage Comments + +You can add comments to any text with a code type suffix, such as cpp and java, among others. + +- Add comments + - Select the text needed, and right-click to select **Add Comment**. + - Select the text needed, and press **Alt + A** to add comments. + +- Cancel comments + - Select the text with comments, and right-click to select **Remove Comment**. + - Select the text with comments, and press **Alt + Z** to cancel comments. + +> ![notes](../common/notes.svg) Notes: This supports comments in different languages. Please refer to actual conditions for detailed information. For example, comment symbol for C, C# and Java is //, and comment symbol for Python is #. + +## Main Menu + +On the main menu, you can Create New Windows, Create New Files, [Find Texts](#Find Texts), [Replace Texts](#Replace Texts), [Save Files](#Save Files), switch window themes, view help manual, and get more information about Text Editor. + +### Settings + +You can set the basic information, shortcuts, and advanced information in settings. + +#### Basic Settings + +Click ![icon_menu](../common/icon_menu.svg)> **Settings** and you can perform the following in the **Basic** option: + +- Select the Font and Font Size. +- Check or uncheck **Word wrap**. +- Check **Code folding flag** and ![next](../common/next.svg) or ![next](../common/next_down.svg) are displayed in the edit area. Right-click and select **Fold/Unfold Current Level** or **Fold/Unfold All** to perform the corresponding operations. +- Check **Show line numbers** to display the line number in the edit area. +- Check **Highlight current line** to highlight the current line. +- Check **Show bookmarks icon** to display the bookmarks in the text. +- Check **Show whitespaces and tabs** to display all the white spaces and tabs. You can also input or delete white spaces and tabs manually. + +> ![tips](../common/tips.svg) Tips: You can also use **Ctrl + “+”/ “-”** to adjust the font size, and press **Ctrl + 0** to restore to default font size. + +#### Shortcuts Settings +1. Click ![icon_menu](../common/icon_menu.svg)> **Settings** to view the current shortcut in the **Shortcuts** option. +2. Select a keymap in **Shortcuts** and view the shortcuts. +3. You can click and customize new shortcuts. + +> ![notes](../common/notes.svg) Notes: You can choose a proper keymap to fit your habits, including standard keymap, Emacs keymap, or customize it as you like. + +#### Advanced Settings + +1. Click ![icon_menu](../common/icon_menu.svg)> **Settings**. +2. In the **Advanced** option, you can set: + - Window size: Normal, Maximum, or Fullscreen; + - Tab width: The width of a tab character. + +### Theme + +The window theme provides three theme types, namely Light Theme, Dark Theme, and System Theme. + +1. On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg). +2. Click **Theme** to select one theme. + +### Help + +1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). +2. Select **Help** to view the manual of Text Editor. + +### About + +1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). +2. Select **About** to view the version and introduction of Text Editor. + +### Exit + +1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). +2. Click **Exit** to exit Text Editor. \ No newline at end of file diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/editor.md b/src/assets/loongarch64/deepin-editor/editor/zh_CN/editor.md old mode 100755 new mode 100644 index 400afe05d..dc54d4804 --- a/src/assets/loongarch64/deepin-editor/editor/zh_CN/editor.md +++ b/src/assets/loongarch64/deepin-editor/editor/zh_CN/editor.md @@ -8,8 +8,6 @@ ## 使用入门 -通过以下方式运行或关闭文本编辑器,或者创建文本编辑器的快捷方式。 - ### 运行文本编辑器 1. 单击任务栏上的启动器图标 ![deepin_launcher](../common/deepin_launcher.svg),进入启动器界面。 @@ -57,28 +55,22 @@ > ![notes](../common/notes.svg)说明:如果您的文件发生了变化而没有保存,文本编辑器会在关闭前提示您保存更改。 - - ### 打开文件 - 您可以采用以下方式打开一个或同时打开多个文本文件,选中的文件将会在新标签页打开: - 直接拖动文件到文本编辑器界面或其图标上。 - 右键单击文件,选择 **打开方式** > **文本编辑器**。选择文本编辑器为默认打开程序后,可直接双击打开。 -- 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg) > **打开文件** 或使用快捷键 **Ctrl + O**,在弹出的窗口中选择文件。 - - +- 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg) > **打开文件** 或使用快捷键 **Ctrl + O**,在弹出的窗口中选择文件打开。 ### 保存文件 - 单击 ![icon_menu](../common/icon_menu.svg) > **保存** 或使用快捷键 **Ctrl + S**,保存当前文件。 - 单击 ![icon_menu](../common/icon_menu.svg) > **另存为** 或使用快捷键 **Ctrl + Shift + S**,另存当前文件。 - ### 打印文件 -在文本编辑器中使用打印,需要您连接并配置好打印机。 +在文本编辑器中使用打印,需要提前连接并配置好打印机。 1. 单击 ![icon_menu](../common/icon_menu.svg) > **打印** 或使用快捷键 **Ctrl + P** 打开打印预览。 2. 在打印预览界面,您可以预览文件,选择打印机并设置打印页面。 @@ -121,7 +113,7 @@ 您也可以使用快捷键 **Alt + U/ L/ C** 迅速切换大小写。 -![toggle_case](fig/d_toggle_case.png) +![togglecase](fig/togglecase.png) ### 高亮文本 @@ -187,10 +179,27 @@ 1. 使用文本编辑器打开文档,单击右键,选择 **开启只读模式**。 2. 在只读模式下,单击右键,选择 **关闭只读模式**。 -![read_only](fig/d_read_only.png) +![read-only](fig/read_only.png) + +![read-only](fig/read_only_02.png) + +### 语音朗读 + +1. 选择一段文字后,单击右键选择 **语音朗读**,将会语音播报选中的文字。 + +2. 在朗读过程中,通过单击朗读控件的关闭按钮可结束语音朗读。 -![read_only](fig/d_read_only02.png) + > ![notes](../common/notes.svg)说明:当未选择文字时,右键菜单中 **语音朗读** 不可激活,处于置灰状态。 +![read-only](fig/reading.png) + +### **语音听写** + +1. 在文本编辑区域内,单击鼠标右键选择 **语音听写**,通过麦克风输入语音,转译文字将被插入到光标所在位置。 + +2. 在听写模式下,通过单击听写控件的关闭按钮可停止语音听写。 + +![read-only](fig/listen.png) ### 列编辑 @@ -204,7 +213,7 @@ 在文本编辑器界面,单击鼠标右键选择 **颜色标记**,在其下拉列表中进行选择。 -![color](fig/d_colortag.png) +![color](fig/colortag.png) - **添加标记**:对某一行或某一段文本内容添加颜色标记;有8种颜色按钮可供选择。 + 将光标定在某一行,标记当前所在的行。 @@ -216,8 +225,6 @@ - **清除上次标记**:清除上次标记操作。 - **清除所有标记**:清除当前所有标记。 - - ### 书签管理 在文本编辑器设置界面,勾选 **显示书签图标** 后,您可以为任意一行的文本内容添加书签。将鼠标指针移至左侧栏任意行号前面会显示图标 ![icon](../common/bookmark_normal_light.svg),添加成功后该行的书签图标会变为蓝色填充的图标 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 @@ -228,7 +235,6 @@ + 鼠标右键单击 ![icon](../common/bookmark_normal_light.svg),选择 **添加书签**,为该行添加一个书签。 + 将光标定在文本中任意一行,使用快捷键 **Ctrl + F2** 为该行添加一个书签。 - - 删除书签 + 鼠标左键单击已填充颜色的书签图标,直接删除该行书签。 @@ -265,17 +271,17 @@ #### 基础设置 -1. 单击![icon_menu](../common/icon_menu.svg) > **设置**。 +1. 单击![icon_menu](../common/icon_menu.svg)> **设置**。 2. 在基础设置选项,您可以选择: - 设置字体样式和字号大小。 - 勾选 **自动换行**,在编辑区自动换行。 - - 勾选 **代码折叠标志**,在左侧栏显示按钮![next](../common/next.svg)或者![next](../common/next_down.svg) ,右键单击按钮选择折叠/展开当前层次或所有层次。 + - 勾选 **代码折叠标志**,在左侧栏显示按钮![next](../common/next.svg)或者![next](../common/next_down.svg),右键单击按钮选择折叠/展开当前层次或所有层次。 - 勾选 **显示行号**,在左侧栏显示行号。 - 勾选 **当前行高亮**,光标所在的行高亮显示。 - 勾选 **显示书签图标**,在左侧栏显示书签图标。 - 勾选 **显示空白制符/制表符**,显示文本中的空白字符和制表符,您也可以手动输入或删除空白字符和制表符。 - - > ![tips](../common/tips.svg)窍门:您还可以使用 **Ctrl + “+”/ “-”** 来调节文本编辑器的默认字号。使用 **Ctrl + 0** 恢复默认字号。 + + > ![tips](../common/tips.svg)窍门:在文本编辑器中,使用 **Ctrl + “+”/ “-”** 调节字号,使用 **Ctrl + 0** 恢复默认字号。 @@ -283,20 +289,19 @@ 1. 单击 ![icon_menu](../common/icon_menu.svg) > **设置**,在 **快捷键** 选项查看当前快捷键。 2. 选择一种快捷键映射。 -3. 您可以单击并重新输入快捷键,自定义快捷键。 +3. 您可以单击快捷键编辑区域,自定义快捷键。 > ![notes](../common/notes.svg)说明: 快捷键映射允许您选择某一种键盘快捷键。您可以使用标准快捷键,Emacs快捷键,或自定义快捷键,以符合您的使用习惯。 #### 高级设置 -1. 单击 ![icon_menu](../common/icon_menu.svg) > **设置**。 +1. 单击 ![icon_menu](../common/icon_menu.svg) >**设置**。 2. 在 **高级设置** 选项,您可以设置: - 窗口状态:正常窗口,最大化或全屏。 - Tab字符宽度:Tab缩进所占用的空间大小。 - ### 主题 窗口主题包含浅色主题、深色主题和系统主题。 @@ -321,4 +326,4 @@ ### 退出 1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 -2. 选择 **退出**。 \ No newline at end of file +2. 选择 **退出**。 diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/close.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/close.png deleted file mode 100755 index eb5704b81..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/close.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/colortag.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/colortag.png old mode 100755 new mode 100644 index 5b64f60d1..88776928c Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/colortag.png and b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/colortag.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/column_mode.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/column_mode.png old mode 100755 new mode 100644 index 52ec0e407..f7aed6b32 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/column_mode.png and b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/column_mode.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_colortag.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_colortag.png deleted file mode 100755 index f7021f8e3..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_colortag.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_column_mode.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_column_mode.png deleted file mode 100755 index 76ee58b8e..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_column_mode.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_read_only.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_read_only.png deleted file mode 100755 index 384de02df..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_read_only.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_read_only02.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_read_only02.png deleted file mode 100755 index f3200d80a..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_read_only02.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_toggle_case.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_toggle_case.png deleted file mode 100755 index 05733d417..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/d_toggle_case.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/highlight.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/highlight.png old mode 100755 new mode 100644 index 955ff0130..6f15f2608 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/highlight.png and b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/highlight.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/hotkey.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/hotkey.png old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/listen.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/listen.png old mode 100755 new mode 100644 index d397f90ea..36cc2f2ef Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/listen.png and b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/listen.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/overview.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/overview.png old mode 100755 new mode 100644 index 56e6ef348..efc554ff1 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/overview.png and b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/overview.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/printer.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/printer.png index 180809cf5..e2f66f6cd 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/printer.png and b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/printer.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/printer_setting.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/printer_setting.png index 7b0b7a5a0..984eee2f2 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/printer_setting.png and b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/printer_setting.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/read_only.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/read_only.png old mode 100755 new mode 100644 index 9d26b1e1e..c58625904 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/read_only.png and b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/read_only.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/read_only_02.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/read_only_02.png old mode 100755 new mode 100644 index 960b5a350..6ee9315a8 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/read_only_02.png and b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/read_only_02.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/reading.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/reading.png old mode 100755 new mode 100644 index 7dbbeed5c..38ffbc8a7 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/reading.png and b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/reading.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/text_translation.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/text_translation.png deleted file mode 100755 index 890ecd017..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/text_translation.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/togglecase.png b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/togglecase.png old mode 100755 new mode 100644 index 63ac808ab..7de472488 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/togglecase.png and b/src/assets/loongarch64/deepin-editor/editor/zh_CN/fig/togglecase.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_CN/p_editor.md b/src/assets/loongarch64/deepin-editor/editor/zh_CN/p_editor.md new file mode 100644 index 000000000..dc54d4804 --- /dev/null +++ b/src/assets/loongarch64/deepin-editor/editor/zh_CN/p_editor.md @@ -0,0 +1,329 @@ +# 文本编辑器|deepin-editor| + +## 概述 + +文本编辑器是一个简单的文本编辑工具。您可以用它书写简单的文本文档,也可以使用它的高级特性,让它成为一个代码编辑工具,支持代码语法高亮。 + +![overview](fig/overview.png) + +## 使用入门 + +### 运行文本编辑器 + +1. 单击任务栏上的启动器图标 ![deepin_launcher](../common/deepin_launcher.svg),进入启动器界面。 +2. 上下滚动鼠标滚轮浏览或通过搜索,找到文本编辑器图标 ![deepin_editor](../common/deepin_editor.svg),单击运行。 +3. 右键单击![deepin_editor](../common/deepin_editor.svg),您可以: + + - 单击 **发送到桌面**,在桌面创建快捷方式。 + - 单击 **发送到任务栏**,将应用程序固定到任务栏。 + - 单击 **开机自动启动**,将应用程序添加到开机启动项,在电脑开机时自动运行该应用。 + +### 退出文本编辑器 + +- 在文本编辑器界面,单击 ![close_icon](../common/close_icon.svg),退出文本编辑器。 +- 在文本编辑器界面,单击主菜单 ![icon_menu](../common/icon_menu.svg) > **退出** ,退出文本编辑器。 +- 在任务栏右键单击 ![deepin_editor](../common/deepin_editor.svg),选择 **关闭所有** ,退出文本编辑器。 + + +### 查看快捷键 + +在文本编辑器界面,使用快捷键 **Ctrl + Shift + ?** 打开快捷键预览界面,您也可以在设置界面查看快捷键。熟练地使用快捷键,将大大提升您的操作效率。 + +![1|hotkey](fig/hotkey.png) + +## 基本操作 + +### 管理标签页 + +- 新建标签页/窗口 + + - 单击标签页上的按钮 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新标签页** 或使用快捷键 **Ctrl + T** 创建一个新的标签页。 + - 单击![icon_menu](../common/icon_menu.svg) > **新窗口** 或使用快捷键 **Ctrl + N** 创建一个新的窗口。 + +- 调整标签页/窗口 + + - 拖拽同一窗口内的标签页重新排序。 + - 滚动鼠标切换同一窗口内的标签页。 + - 移出标签页创建一个新的窗口,或者从一个窗口移到另外一个窗口中。 + +- 关闭标签页/窗口 + + 当窗口中仅有一个标签页时,关闭标签页的同时也会关闭窗口。 + - 使用快捷键 **Ctrl + W** 关闭当前标签页。 + - 单击标签页上的按钮 ![close_icon](../common/close_icon.svg) 或者单击鼠标中键,关闭当前标签页。 + - 右键单击标签页,选择 **关闭标签页** 、**关闭其他标签页** 或 **更多关闭方式** 来关闭标签页。 + + > ![notes](../common/notes.svg)说明:如果您的文件发生了变化而没有保存,文本编辑器会在关闭前提示您保存更改。 + +### 打开文件 + +您可以采用以下方式打开一个或同时打开多个文本文件,选中的文件将会在新标签页打开: + +- 直接拖动文件到文本编辑器界面或其图标上。 +- 右键单击文件,选择 **打开方式** > **文本编辑器**。选择文本编辑器为默认打开程序后,可直接双击打开。 +- 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg) > **打开文件** 或使用快捷键 **Ctrl + O**,在弹出的窗口中选择文件打开。 + +### 保存文件 +- 单击 ![icon_menu](../common/icon_menu.svg) > **保存** 或使用快捷键 **Ctrl + S**,保存当前文件。 +- 单击 ![icon_menu](../common/icon_menu.svg) > **另存为** 或使用快捷键 **Ctrl + Shift + S**,另存当前文件。 + + +### 打印文件 + +在文本编辑器中使用打印,需要提前连接并配置好打印机。 + +1. 单击 ![icon_menu](../common/icon_menu.svg) > **打印** 或使用快捷键 **Ctrl + P** 打开打印预览。 +2. 在打印预览界面,您可以预览文件,选择打印机并设置打印页面。 +3. 在打印预览界面,单击 **高级设置**,可配置纸张大小、打印方式等相关参数。 +4. 单击 **打印** 即可将文件发送到打印机打印。 + +![pagesetup](fig/printer.png) + +![printer](fig/printer_setting.png) + + + +## 编辑文本 + +### 移动光标 + +除了使用方向键和鼠标点击移动光标,您还可以使用以下快捷键迅速移动光标: + +| 功能 | 快捷键 | +| --------------- | ------------ | +| 保存光标位置 | Ctrl + Shift + > | +| 重置光标位置(跳转到上次光标保存的位置) | Ctrl + Shift + < | +| 右移一个词 (光标向右跳过一个词) | Ctrl + 右方向键 | +| 左移一个词 (光标向左跳过一个词) | Ctrl + 左方向键 | +| 移动到行尾 | End | +| 移动到行头 | Home | +| 移动到文本结尾 | Ctrl + End | +| 移动到文本开头 | Ctrl + Home | +| 移动到行缩进 | Ctrl + M | +| 向右匹配 (光标移动到右括号的后面) | Alt + P | +| 向左匹配(光标移动到左括号的前面) | Alt + N | + +### 切换大小写 + +切换大小写功能可以将选中的文本全部改为大写字母、小写字母或者让首字母大写。 + +1. 选中待更改的文本内容。 +2. 单击右键,选择 **切换大小写**。 +3. 选择 **大写**/**小写**/**首字母大写** 选项,更改会立即生效。 + +您也可以使用快捷键 **Alt + U/ L/ C** 迅速切换大小写。 + +![togglecase](fig/togglecase.png) + +### 高亮文本 + +文本编辑器支持高亮不同类型的文本。 +单击底部状态栏最右侧的三角符号, 选择某种文本类型。若文本中有相应内容则会自动高亮。 + +![highlight](fig/highlight.png) + +### 删除文本 +除了向左或向右逐个删除字符外,您还可以使用以下快捷键迅速删除字符: + +| 功能 | 快捷键 | +| --------------- | ------------ | +| 删除到行尾 | Ctrl + K | +| 删除当前行 | Ctrl + Shift + K | +| 向左删除一个词 | Alt + Shift + N | +| 向右删除一个词 | Alt + Shift + M | + +### 撤销操作 + +如果在编辑文本时发生误操作,可以使用快捷键 **Ctrl + Z** 撤销操作,或者在右键菜单中选择 **撤销**。 + +### 查找文本 + +1. 单击 ![menu](../common/icon_menu.svg) > **查找** 或使用快捷键 **Ctrl + F**,打开查找窗口。 +2. 在查找窗口中,输入要搜索的文本。 +3. 单击 **下一个**、**上一个** 逐个查找,或使用 **Enter** 键查找下一个匹配项。 +4. 按下 **Esc** 键或单击关闭按钮,关闭查找窗口。 + +> ![tips](../common/tips.svg)窍门:选中一段文本后再进行查找,则这段文本会自动出现在查找窗口中。 + +### 替换文本 +1. 单击 ![menu](../common/icon_menu.svg) > **替换** 或使用快捷键 **Ctrl + H** ,打开替换窗口。 +2. 在替换窗口中,输入要替换的文本以及新文本。 +3. 单击 **替换** 逐个替换;单击 **剩余替换**、**全部替换** 一次性替换剩余的或所有的匹配文本;单击 **跳过** 不替换当前匹配的文本。 +4. 按下 **Esc** 键或单击关闭按钮,关闭搜索窗口。 + +### 跳到行 +使用该功能可以迅速跳转到任一行。 +在右键菜单中选择 **跳到行** 或者使用快捷键 **Ctrl + G** ,输入行号即可跳转到相应行。 + +### 编辑行 + +您可以使用以下快捷键迅速编辑行: + +| 功能 | 快捷键 | +| ------------ | ------------ | +| 向上插入一行(在上方插入一行) | Ctrl + Enter | +| 向下插入一行(在下方插入一行) | Ctrl + Shift + Enter | +| 复制并粘贴当前行 | Ctrl + Shift + D | +| 上移一行(与上一行交换位置) | Ctrl + Shift + Up | +| 下移一行(与下一行交换位置) | Ctrl + Shift + Down | +| 向上滚动一行 | Super + Shift + Up | +| 向下滚动一行 | Super + Shift + Down | +| 设置标记 | Alt + H | +| 取消标记 | Alt + Shift + H | +| 复制行 | Super + C | +| 剪切行 | Super + X | +| 合并行 | Ctrl + J | + +### 开启/关闭只读模式 + +1. 使用文本编辑器打开文档,单击右键,选择 **开启只读模式**。 +2. 在只读模式下,单击右键,选择 **关闭只读模式**。 + +![read-only](fig/read_only.png) + +![read-only](fig/read_only_02.png) + +### 语音朗读 + +1. 选择一段文字后,单击右键选择 **语音朗读**,将会语音播报选中的文字。 + +2. 在朗读过程中,通过单击朗读控件的关闭按钮可结束语音朗读。 + + > ![notes](../common/notes.svg)说明:当未选择文字时,右键菜单中 **语音朗读** 不可激活,处于置灰状态。 + +![read-only](fig/reading.png) + +### **语音听写** + +1. 在文本编辑区域内,单击鼠标右键选择 **语音听写**,通过麦克风输入语音,转译文字将被插入到光标所在位置。 + +2. 在听写模式下,通过单击听写控件的关闭按钮可停止语音听写。 + +![read-only](fig/listen.png) + +### 列编辑 + +在文本编辑器界面,按住 **Alt** 键不放,鼠标左键单击多列启动列编辑模式,为多行代码同时编辑相同的内容,提高工作效率。 + +![mode](fig/column_mode.png) + + + +### 颜色标记 + +在文本编辑器界面,单击鼠标右键选择 **颜色标记**,在其下拉列表中进行选择。 + +![color](fig/colortag.png) + + - **添加标记**:对某一行或某一段文本内容添加颜色标记;有8种颜色按钮可供选择。 + + 将光标定在某一行,标记当前所在的行。 + + 选中一段文本内容后,标记选中的文本内容。 + - **标记所有**:将文本内容全部标记或对已选中的文本内容,在全文中标记匹配项;有8种颜色按钮可供选择。 + + 将光标定在任意一行,将文本内容全部标记。 + + 选中一段文本内容,在全文中标记匹配项。 + + - **清除上次标记**:清除上次标记操作。 + - **清除所有标记**:清除当前所有标记。 + +### 书签管理 + +在文本编辑器设置界面,勾选 **显示书签图标** 后,您可以为任意一行的文本内容添加书签。将鼠标指针移至左侧栏任意行号前面会显示图标 ![icon](../common/bookmark_normal_light.svg),添加成功后该行的书签图标会变为蓝色填充的图标 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 + +- 添加书签 + + + 鼠标左键单击 ![icon](../common/bookmark_normal_light.svg),为该行添加书签。 + + 鼠标右键单击 ![icon](../common/bookmark_normal_light.svg),选择 **添加书签**,为该行添加一个书签。 + + 将光标定在文本中任意一行,使用快捷键 **Ctrl + F2** 为该行添加一个书签。 + +- 删除书签 + + + 鼠标左键单击已填充颜色的书签图标,直接删除该行书签。 + + 鼠标右键单击已填充颜色的书签图标,选择 **清除书签**,删除该行书签。 + + 鼠标右键单击书签图标,选择 **清除所有书签**,删除该文本的全部书签。 + + >![icon](../common/notes.svg)说明:鼠标移到左侧行号前面才会显示书签图标,移出书签区域,书签图标消失。添加书签后,该图标一直显示。 + + + +### 注释管理 + +在文本编辑器界面,您可以对扩展名为.cpp 、.java 、.py等代码类型的文件进行添加注释的操作。 + +- 添加注释 + + 选中一段文本内容,单击右键并选择 **添加注释**。 + + 选中一段文本内容,使用快捷键 **Alt + A** 添加注释。 + +- 取消注释 + + 选中一段已添加注释的文本内容,单击右键并选择 **取消注释**。 + + 选中一段已添加注释的文本内容,使用快捷键 **Alt + Z** 取消注释。 + + >![notes](../common/notes.svg)说明:支持不同代码语言的注释,具体以实际为主。例如C,C#,Java注释符号为 //,Python 注释符号为 #。 + + + +## 主菜单 + +在主菜单中,您可以新建窗口、新建标签页、[查找文本](#查找文本)、[替换文本](#替换文本)、保存文件、切换窗口主题、查看帮助手册,了解文本编辑器的更多信息。 + +### 设置 + +您可以对基础信息、快捷键和高级信息进行设置。 + +#### 基础设置 + +1. 单击![icon_menu](../common/icon_menu.svg)> **设置**。 +2. 在基础设置选项,您可以选择: + - 设置字体样式和字号大小。 + - 勾选 **自动换行**,在编辑区自动换行。 + - 勾选 **代码折叠标志**,在左侧栏显示按钮![next](../common/next.svg)或者![next](../common/next_down.svg),右键单击按钮选择折叠/展开当前层次或所有层次。 + - 勾选 **显示行号**,在左侧栏显示行号。 + - 勾选 **当前行高亮**,光标所在的行高亮显示。 + - 勾选 **显示书签图标**,在左侧栏显示书签图标。 + - 勾选 **显示空白制符/制表符**,显示文本中的空白字符和制表符,您也可以手动输入或删除空白字符和制表符。 + + > ![tips](../common/tips.svg)窍门:在文本编辑器中,使用 **Ctrl + “+”/ “-”** 调节字号,使用 **Ctrl + 0** 恢复默认字号。 + + + +#### 快捷键设置 + +1. 单击 ![icon_menu](../common/icon_menu.svg) > **设置**,在 **快捷键** 选项查看当前快捷键。 +2. 选择一种快捷键映射。 +3. 您可以单击快捷键编辑区域,自定义快捷键。 + + > ![notes](../common/notes.svg)说明: 快捷键映射允许您选择某一种键盘快捷键。您可以使用标准快捷键,Emacs快捷键,或自定义快捷键,以符合您的使用习惯。 + + +#### 高级设置 + +1. 单击 ![icon_menu](../common/icon_menu.svg) >**设置**。 +2. 在 **高级设置** 选项,您可以设置: + - 窗口状态:正常窗口,最大化或全屏。 + - Tab字符宽度:Tab缩进所占用的空间大小。 + + +### 主题 + +窗口主题包含浅色主题、深色主题和系统主题。 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **主题**,选择一个主题颜色。 + +### 帮助 + +查看帮助手册,进一步了解和使用文本编辑器。 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **帮助**。 +3. 查看文本编辑器的帮助手册。 + +### 关于 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **关于**。 +3. 查看文本编辑器的版本和介绍。 + +### 退出 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **退出**。 diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/editor.md b/src/assets/loongarch64/deepin-editor/editor/zh_HK/editor.md old mode 100755 new mode 100644 index 051eb3d4c..20e52b360 --- a/src/assets/loongarch64/deepin-editor/editor/zh_HK/editor.md +++ b/src/assets/loongarch64/deepin-editor/editor/zh_HK/editor.md @@ -8,13 +8,11 @@ ## 使用入門 -通過以下方式運行或關閉文本編輯器,或者創建文本編輯器的快捷方式。 - ### 運行文本編輯器 1. 單擊任務欄上的啟動器圖標 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器界面。 -2. 上下滾動鼠標滾輪瀏覽或通過搜索,找到文本編輯器圖標![deepin_editor](../common/deepin_editor.svg),單擊運行。 -3. 右鍵單擊![deepin_editor](../common/deepin_editor.svg),您可以: +2. 上下滾動鼠標滾輪瀏覽或通過搜索,找到文本編輯器圖標 ![deepin_editor](../common/deepin_editor.svg),單擊運行。 +3. 右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),您可以: - 單擊 **傳送到桌面**,在桌面創建快捷方式。 - 單擊 **傳送到任務欄**,將應用程序固定到任務欄。 @@ -39,8 +37,8 @@ - 新建標籤頁/窗口 - - 單擊標籤頁上的 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新標籤頁** 或使用快捷鍵 **Ctrl + T** 創建一個新的標籤頁。 - - 單擊![icon_menu](../common/icon_menu.svg) > **新窗口** 或使用快捷鍵 **Ctrl + N** 創建一個新的窗口。 + - 單擊標籤頁上的按鈕 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新標籤頁** 或使用快捷鍵 **Ctrl + T** 創建一個新的標籤頁。 + - 單擊 ![icon_menu](../common/icon_menu.svg) > **新窗口** 或使用快捷鍵 **Ctrl + N** 創建一個新的窗口。 - 調整標籤頁/窗口 @@ -52,7 +50,7 @@ 當窗口中僅有一個標籤頁時,關閉標籤頁的同時也會關閉窗口。 - 使用快捷鍵 **Ctrl + W** 關閉當前標籤頁。 - - 單擊標籤頁上的按鈕 ![close_icon](../common/close_icon.svg) 或者單擊鼠標中鍵,關閉當前標籤頁。 + - 單擊標籤頁上的 ![close_icon](../common/close_icon.svg) 按鈕或者單擊鼠標中鍵,關閉當前標籤頁。 - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 來關閉標籤頁。 > ![notes](../common/notes.svg)說明:如果您的文件發生了變化而沒有保存,文本編輯器會在關閉前提示您保存更改。 @@ -72,6 +70,7 @@ - 單擊 ![icon_menu](../common/icon_menu.svg) > **另存為** 或使用快捷鍵 **Ctrl + Shift + S**,另存當前文件。 + ### 打印文件 在文本編輯器中使用打印,需要您連接並配置好打印機。 @@ -113,7 +112,7 @@ 您也可以使用快捷鍵 **Alt + U/ L/ C** 迅速切換大小寫。 -![toggle_case](fig/d_toggle_case.png) +![toggle_case](fig/toggle_case.png) ### 高亮文本 @@ -134,7 +133,7 @@ ### 撤銷操作 -如果在編輯文本時發生誤操作, 可以使用快捷鍵 **Ctrl + Z** 撤銷操作, 或者在右鍵菜單中選擇 **撤銷**。 +如果在編輯文本時發生誤操作,可以使用快捷鍵 **Ctrl + Z** 撤銷操作,或者在右鍵菜單中選擇 **撤銷**。 ### 查找文本 @@ -179,11 +178,27 @@ 1. 使用文本編輯器打開文檔,單擊右鍵,選擇 **開啟只讀模式**。 2. 在只讀模式下,單擊右鍵,選擇 **關閉只讀模式**。 -![read_only](fig/d_read_only.png) +![read_only](fig/read_only.png) + +![read_only](fig/read_only02.png) + +### 語音朗讀 + +1. 選取一段文字後,點擊右鍵選擇 **語音朗讀**,即可將選中的文字以語音播報。 + +2. 朗讀過程中,點擊朗讀控制項上的關閉按鈕即可終止語音朗讀。 + + > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵菜單中 **語音朗讀** 不可啟動,處置灰狀態。 -![read_only](fig/d_read_only02.png) +![read_only](fig/reading.png) +### 語音聽寫 + +1. 在文字編輯區域內,點擊滑鼠右鍵選擇 **語音聽寫**,即可透過咪高峰輸入語音,轉換成的文字將會插入至游標所在位置。 +2. 在聽寫模式下,點擊聽寫控制項上的關閉按鈕即可停止語音聽寫。 + +![read-only](fig/listen.png) ### 列編輯 @@ -195,7 +210,7 @@ 在文本編輯器界面,單擊鼠標右鍵選擇 **顏色標記**,在其下拉列表中進行選擇。 -![color](fig/d_color_tag.png) +![color](fig/color_tag.png) - **設置標記**:對某一行或某一段文本內容添加顏色標記;有8種顏色按鈕可供選擇。 + 將光標定在某一行,標記當前所在的行。 @@ -208,15 +223,14 @@ - ### 書籤管理 -在文本編輯器設置界面,勾選 **顯示書籤圖標** 後,您可以為任意一行的文本內容添加一個書籤。將鼠標指針移至左側欄任意行號前面會顯示圖標 ![icon](../common/bookmark_normal_light.svg),添加成功後該行的書籤圖標會變為藍色填充的圖標 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 +在文本編輯器設置界面,勾選 **顯示書籤圖標** 後,您可以為任意一行的文本內容添加一個書籤。將鼠標指針移至左側欄任意行號前面會顯示圖標 ![icon](../common/bookmark_normal_light.svg),添加成功後該行的書籤圖標會變為藍色填充的圖標 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 - 添加書籤 + 鼠標左鍵單擊 ![icon](../common/bookmark_normal_light.svg),為該行添加書籤。 - + 鼠標右鍵單擊![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + + 鼠標右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + 將光標定在文本中任意一行,使用快捷鍵 **Ctrl + F2** 為該行添加一個書籤。 - 刪除書籤 @@ -247,18 +261,17 @@ ## 主菜單 在主菜單中,您可以新建窗口、新建標籤頁、[查找文本](#查找文本)、[替換文本](#替換文本)、保存文件、切換窗口主題、查看幫助手冊,了解文本編輯器的更多訊息。 - ### 設置 您可以對基礎訊息、快捷鍵和高級訊息進行設置。 #### 基礎設置 -1. 單擊![icon_menu](../common/icon_menu.svg)> **設置**。 +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設置**。 2. 在基礎設置選項,您可以選擇: - 設置字體樣式和字號大小。 - 勾選 **自動換行**,在編輯區自動換行。 - - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開當前層次或所有層次。 + - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示 ![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開當前層次或所有層次。 - 勾選 **顯示行號**,在左側欄顯示行號。 - 勾選 **當前行高亮**,光標所在的行高亮顯示。 - 勾選 **顯示書籤圖標**,在左側欄顯示書籤圖標。 @@ -267,6 +280,7 @@ > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 來調節文本編輯器的默認字號。使用 **Ctrl + 0** 恢復默認字號。 + #### 快捷鍵設置 1. 單擊![icon_menu](../common/icon_menu.svg)> **設置**,在 **快捷鍵** 選項查看當前快捷鍵。 @@ -278,7 +292,7 @@ #### 高級設置 -1. 單擊![icon_menu](../common/icon_menu.svg)>**設置**。 +1. 單擊 ![icon_menu](../common/icon_menu.svg) >**設置**。 2. 在 **高級設置** 選項,您可以設置: - 窗口狀態:正常窗口,最大化或全螢幕。 - Tab字符寬度:Tab縮進所佔用的空間大小。 @@ -289,7 +303,7 @@ 窗口主題包含淺色主題、深色主題和系統主題。 -1. 在文本編輯器界面,單擊![icon_menu](../common/icon_menu.svg)。 +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 2. 單擊 **主題**,選擇一個主題顏色。 ### 幫助 diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/close.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/close.png deleted file mode 100755 index eb5704b81..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/close.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/color_tag.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/color_tag.png deleted file mode 100755 index aa8b20067..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/color_tag.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/colortag.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/colortag.png new file mode 100644 index 000000000..8e1e061f6 Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/colortag.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/column_mode.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/column_mode.png old mode 100755 new mode 100644 index 8d55fc7aa..d21f318ee Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/column_mode.png and b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/column_mode.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_color_tag.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_color_tag.png deleted file mode 100755 index 24a393283..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_color_tag.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_read_only.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_read_only.png deleted file mode 100755 index e5cdf3ab1..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_read_only.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_read_only02.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_read_only02.png deleted file mode 100755 index c140b8083..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_read_only02.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_toggle_case.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_toggle_case.png deleted file mode 100755 index bbe4afb48..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/d_toggle_case.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/highlight.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/highlight.png old mode 100755 new mode 100644 index 9ec23d428..ee2b7748b Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/highlight.png and b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/highlight.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/hotkey.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/hotkey.png old mode 100755 new mode 100644 diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/listen.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/listen.png old mode 100755 new mode 100644 index d397f90ea..8283dc5af Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/listen.png and b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/listen.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/overview.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/overview.png old mode 100755 new mode 100644 index b20ade643..92faa4130 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/overview.png and b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/overview.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/printer.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/printer.png new file mode 100644 index 000000000..8ea80e58d Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/printer.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/printer_setting.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/printer_setting.png new file mode 100644 index 000000000..8a54f878e Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/printer_setting.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/read_only.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/read_only.png old mode 100755 new mode 100644 index e9ecb117b..d514402cb Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/read_only.png and b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/read_only.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/read_only02.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/read_only02.png old mode 100755 new mode 100644 index fe3fdee35..45aa5763d Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/read_only02.png and b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/read_only02.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/reading.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/reading.png old mode 100755 new mode 100644 index 12ae8421d..71a466d33 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/reading.png and b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/reading.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/toggle_case.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/toggle_case.png deleted file mode 100755 index e7d395f27..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/toggle_case.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/togglecase.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/togglecase.png new file mode 100644 index 000000000..cfc32f190 Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/togglecase.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/translation.png b/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/translation.png deleted file mode 100755 index b522e244a..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_HK/fig/translation.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_HK/p_editor.md b/src/assets/loongarch64/deepin-editor/editor/zh_HK/p_editor.md new file mode 100644 index 000000000..20e52b360 --- /dev/null +++ b/src/assets/loongarch64/deepin-editor/editor/zh_HK/p_editor.md @@ -0,0 +1,326 @@ +# 文本編輯器|deepin-editor| + +## 概述 + +文本編輯器是一個簡單的文本編輯工具。您可以用它書寫簡單的文本文檔,也可以使用它的高級特性,讓它成為一個代碼編輯工具,支持代碼語法高亮。 + +![overview](fig/overview.png) + +## 使用入門 + +### 運行文本編輯器 + +1. 單擊任務欄上的啟動器圖標 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器界面。 +2. 上下滾動鼠標滾輪瀏覽或通過搜索,找到文本編輯器圖標 ![deepin_editor](../common/deepin_editor.svg),單擊運行。 +3. 右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),您可以: + + - 單擊 **傳送到桌面**,在桌面創建快捷方式。 + - 單擊 **傳送到任務欄**,將應用程序固定到任務欄。 + - 單擊 **加至開機啟動**,將應用程序添加到開機啟動項,在電腦開機時自動運行該應用。 + +### 關閉文本編輯器 + +- 在文本編輯器界面,單擊 ![close_icon](../common/close_icon.svg),關閉文本編輯器。 +- 在文本編輯器界面,單擊主菜單 ![icon_menu](../common/icon_menu.svg) > **退出** ,關閉文本編輯器。 +- 在任務欄右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),選擇 **關閉所有** ,關閉文本編輯器。 + + +### 查看快捷鍵 + +在文本編輯器界面,使用快捷鍵 **Ctrl + Shift + ?** 打開快捷鍵預覽界面,您也可以在設置界面查看快捷鍵。熟練地使用快捷鍵,將大大提升您的操作效率。 + +![1|hotkey](fig/hotkey.png) + +## 基本操作 + +### 管理標籤頁 + +- 新建標籤頁/窗口 + + - 單擊標籤頁上的按鈕 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新標籤頁** 或使用快捷鍵 **Ctrl + T** 創建一個新的標籤頁。 + - 單擊 ![icon_menu](../common/icon_menu.svg) > **新窗口** 或使用快捷鍵 **Ctrl + N** 創建一個新的窗口。 + +- 調整標籤頁/窗口 + + - 拖拽同一窗口內的標籤頁重新排序。 + - 滾動鼠標切換同一窗口內的標籤頁。 + - 移出標籤頁創建一個新的窗口,或者從一個窗口移到另外一個窗口中。 + +- 關閉標籤頁/窗口 + + 當窗口中僅有一個標籤頁時,關閉標籤頁的同時也會關閉窗口。 + - 使用快捷鍵 **Ctrl + W** 關閉當前標籤頁。 + - 單擊標籤頁上的 ![close_icon](../common/close_icon.svg) 按鈕或者單擊鼠標中鍵,關閉當前標籤頁。 + - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 來關閉標籤頁。 + + > ![notes](../common/notes.svg)說明:如果您的文件發生了變化而沒有保存,文本編輯器會在關閉前提示您保存更改。 + + +### 打開文件 + +您可以採用以下方式打開一個或同時打開多個文本文件,選中的文件將會在新標籤頁中打開: + +- 直接拖動文件到文本編輯器界面或其圖標上。 +- 右鍵單擊文件,選擇 **打開方式** > **文本編輯器**。選擇文本編輯器為默認打開程序後,可直接雙擊打開。 +- 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg) > **打開文件** 或使用快捷鍵 **Ctrl + O**,在彈出的窗口中選擇文件打開。 + + +### 保存文件 +- 單擊 ![icon_menu](../common/icon_menu.svg) > **保存** 或使用快捷鍵 **Ctrl + S**,保存當前文件。 +- 單擊 ![icon_menu](../common/icon_menu.svg) > **另存為** 或使用快捷鍵 **Ctrl + Shift + S**,另存當前文件。 + + + +### 打印文件 + +在文本編輯器中使用打印,需要您連接並配置好打印機。 + +1. 單擊 ![icon_menu](../common/icon_menu.svg) > **打印**,也可以使用快捷鍵 **Ctrl + P** 打開打印預覽。 +2. 在打印預覽界面,您可以預覽文件,選擇打印機並設置打印頁面。 +3. 在打印預覽界面,單擊 **高級設置**,可配置紙張大小、打印方式等相關參數。 +4. 單擊 **打印** 即可將文件發送到打印機打印。 + + + +## 編輯文本 + +### 移動光標 + +除了使用方向鍵和鼠標單擊移動光標,您還可以使用以下快捷鍵迅速移動光標: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 保存光標位置 | Ctrl + Shift + > | +| 重置光標位置(跳轉到上次光標保存的位置) | Ctrl + Shift + < | +| 右移一個詞 (光標向右跳過一個詞) | Ctrl + 右方向鍵 | +| 左移一個詞 (光標向左跳過一個詞) | Ctrl + 左方向鍵 | +| 移動到行尾 | End | +| 移動到行頭 | Home | +| 移動到文本結尾 | Ctrl + End | +| 移動到文本開頭 | Ctrl + Home | +| 移動到行縮進 | Ctrl + M | +| 向右匹配 (光標移動到右括號的後面) | Alt + P | +| 向左匹配(光標移動到左括號的前面) | Alt + N | + +### 切換大小寫 + +切換大小寫功能可以將選中的文本全部改為大寫字母、小寫字母或者讓首字母大寫。 + +1. 選中待更改的文本內容。 +2. 單擊右鍵,選擇 **切換大小寫**。 +3. 選擇 **大寫**/**小寫**/**首字母大寫** 選項,更改會立即生效。 + +您也可以使用快捷鍵 **Alt + U/ L/ C** 迅速切換大小寫。 + +![toggle_case](fig/toggle_case.png) + +### 高亮文本 + +文本編輯器支持高亮不同類型的文本。 +單擊底部狀態欄最右側的三角符號, 選擇某種文本類型。若文本中有相應內容則會自動高亮。 + +![highlight](fig/highlight.png) + +### 刪除文本 +除了向左或向右逐個刪除字符外,您還可以使用以下快捷鍵迅速刪除字符: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 刪除到行尾 | Ctrl + K | +| 刪除當前行 | Ctrl + Shift + K | +| 向左刪除一個詞 | Alt + Shift + N | +| 向右刪除一個詞 | Alt + Shift + M | + +### 撤銷操作 + +如果在編輯文本時發生誤操作,可以使用快捷鍵 **Ctrl + Z** 撤銷操作,或者在右鍵菜單中選擇 **撤銷**。 + +### 查找文本 + +1. 單擊 ![menu](../common/icon_menu.svg) > **查找** 或使用快捷鍵 **Ctrl + F** 打開查找窗口。 +2. 在查找窗口中,輸入要搜索的文本。 +3. 單擊 **下一個**、**上一個** 逐個查找,或使用 **Enter** 鍵查找下一個匹配項。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉查找窗口。 + +> ![tips](../common/tips.svg)竅門:選中一段文本後再進行搜索,則這段文本會自動出現在查找窗口中。 + +### 替換文本 +1. 單擊 ![menu](../common/icon_menu.svg) > **替換** 或使用快捷鍵 **Ctrl + H** 打開替換窗口。 +2. 在替換窗口中,輸入要替換的文本以及新文本。 +3. 單擊 **替換** 逐個替換,單擊 **剩餘替換**、**全部替換** 一次性替換剩餘的或所有的匹配文本。單擊 **跳過** 不替換當前匹配的文本。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉搜索窗口。 + +### 跳到行 +使用該功能可以迅速跳轉到任一行。 +在右鍵菜單中選擇 **跳到行** 或者使用快捷鍵 **Ctrl + G** ,輸入行號即可跳轉到相應行。 + +### 編輯行 + +您可以使用以下快捷鍵迅速編輯行: + +| 功能 | 快捷鍵 | +| ------------ | ------------ | +| 向上插入一行(在上方插入一行) | Ctrl + Enter | +| 向下插入一行(在下方插入一行) | Ctrl + Shift + Enter | +| 複製並黏貼當前行 | Ctrl + Shift + D | +| 上移一行(與上一行交換位置) | Ctrl + Shift + Up | +| 下移一行(與下一行交換位置) | Ctrl + Shift + Down | +| 向上滾動一行 | Super + Shift + Up | +| 向下滾動一行 | Super + Shift + Down | +| 設置標記 | Alt + H | +| 取消標記 | Alt + Shift + H | +| 複製行 | Super + C | +| 剪切行 | Super + X | +| 合併行 | Ctrl + J | + +### 開啟/關閉只讀模式 + +1. 使用文本編輯器打開文檔,單擊右鍵,選擇 **開啟只讀模式**。 +2. 在只讀模式下,單擊右鍵,選擇 **關閉只讀模式**。 + +![read_only](fig/read_only.png) + +![read_only](fig/read_only02.png) + +### 語音朗讀 + +1. 選取一段文字後,點擊右鍵選擇 **語音朗讀**,即可將選中的文字以語音播報。 + +2. 朗讀過程中,點擊朗讀控制項上的關閉按鈕即可終止語音朗讀。 + + > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵菜單中 **語音朗讀** 不可啟動,處置灰狀態。 + + +![read_only](fig/reading.png) + +### 語音聽寫 + +1. 在文字編輯區域內,點擊滑鼠右鍵選擇 **語音聽寫**,即可透過咪高峰輸入語音,轉換成的文字將會插入至游標所在位置。 +2. 在聽寫模式下,點擊聽寫控制項上的關閉按鈕即可停止語音聽寫。 + +![read-only](fig/listen.png) + +### 列編輯 + +在文本編輯器界面,按住鍵盤上的 **Alt** 鍵不放,鼠標左鍵單擊多列啟動列編輯模式,為多行代碼同時編輯相同的內容,提高工作效率。 + +![mode](fig/column_mode.png) + +### 顏色標記 + +在文本編輯器界面,單擊鼠標右鍵選擇 **顏色標記**,在其下拉列表中進行選擇。 + +![color](fig/color_tag.png) + + - **設置標記**:對某一行或某一段文本內容添加顏色標記;有8種顏色按鈕可供選擇。 + + 將光標定在某一行,標記當前所在的行。 + + 選中一段文本內容後,標記選中的文本內容。 + - **標記所有**:將文本內容全部標記或對已選中的文本內容,在全文中標記匹配項;有8種顏色按鈕可供選擇。 + + 將光標定在任意一行,將文本內容全部標記。 + + 選中一段文本內容,在全文中標記匹配項。 + - **清除上次標記**:清除上次標記操作。 + - **清除所有標記**:清除當前所有標記。 + + + +### 書籤管理 + +在文本編輯器設置界面,勾選 **顯示書籤圖標** 後,您可以為任意一行的文本內容添加一個書籤。將鼠標指針移至左側欄任意行號前面會顯示圖標 ![icon](../common/bookmark_normal_light.svg),添加成功後該行的書籤圖標會變為藍色填充的圖標 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 + +- 添加書籤 + + + 鼠標左鍵單擊 ![icon](../common/bookmark_normal_light.svg),為該行添加書籤。 + + 鼠標右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + + 將光標定在文本中任意一行,使用快捷鍵 **Ctrl + F2** 為該行添加一個書籤。 + +- 刪除書籤 + + + 鼠標左鍵單擊已填充顏色的書籤圖標,直接刪除該行書籤。 + + 鼠標右鍵單擊已填充顏色的書籤圖標,選擇 **清除書籤**,刪除該行書籤。 + + 鼠標右鍵單擊書籤圖標,選擇 **清除所有書籤**,刪除該文本的全部書籤。 + + >![icon](../common/notes.svg)說明:鼠標移到左側行號前面才會顯示書籤圖標,移出書籤區域,書籤圖標消失。添加書籤後,該圖標一直顯示。 + + + +### 注釋管理 + +在文本編輯器界面,您可對擴展名為.cpp 、.java 、.py等代碼類型的文件進行添加注釋的操作。 +- 添加注釋 + + 選中一段文本內容,在右鍵菜單中選擇 **添加注釋**。 + + 選中一段文本內容,使用快捷鍵 **Alt + A** 添加注釋。 + +- 取消注釋 + + 選中一段已添加注釋的文本內容,在右鍵菜單中選擇 **取消注釋**。 + + 選中一段已添加注釋的文本內容,使用快捷鍵 **Alt + Z** 取消注釋。 + + >![notes](../common/notes.svg)說明:支持不同代碼語言的注釋,具體以實際為主。例如C,C#,Java注釋符號為 //,Python 注釋符號為 #。 + + + +## 主菜單 + +在主菜單中,您可以新建窗口、新建標籤頁、[查找文本](#查找文本)、[替換文本](#替換文本)、保存文件、切換窗口主題、查看幫助手冊,了解文本編輯器的更多訊息。 +### 設置 + +您可以對基礎訊息、快捷鍵和高級訊息進行設置。 + +#### 基礎設置 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設置**。 +2. 在基礎設置選項,您可以選擇: + - 設置字體樣式和字號大小。 + - 勾選 **自動換行**,在編輯區自動換行。 + - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示 ![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開當前層次或所有層次。 + - 勾選 **顯示行號**,在左側欄顯示行號。 + - 勾選 **當前行高亮**,光標所在的行高亮顯示。 + - 勾選 **顯示書籤圖標**,在左側欄顯示書籤圖標。 + - 勾選 **顯示空白制符/製表符**,顯示文本中的空白字符和製表符,您也可手動輸入或刪除空白字符和製表符。 + + > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 來調節文本編輯器的默認字號。使用 **Ctrl + 0** 恢復默認字號。 + + + +#### 快捷鍵設置 + +1. 單擊![icon_menu](../common/icon_menu.svg)> **設置**,在 **快捷鍵** 選項查看當前快捷鍵。 +2. 選擇一種快捷鍵映射。 +3. 單擊快捷鍵編輯框 ,可以自定義快捷鍵。 + + > ![notes](../common/notes.svg)說明: 快捷鍵映射允許您選擇某一種鍵盤快捷鍵。您可以使用標準快捷鍵,Emacs快捷鍵,或自定義快捷鍵,以符合您的使用習慣。 + + +#### 高級設置 + +1. 單擊 ![icon_menu](../common/icon_menu.svg) >**設置**。 +2. 在 **高級設置** 選項,您可以設置: + - 窗口狀態:正常窗口,最大化或全螢幕。 + - Tab字符寬度:Tab縮進所佔用的空間大小。 + + + +### 主題 + +窗口主題包含淺色主題、深色主題和系統主題。 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **主題**,選擇一個主題顏色。 + +### 幫助 + +查看幫助手冊,進一步了解和使用文本編輯器。 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **幫助**。 +3. 查看文本編輯器的幫助手冊。 + +### 關於 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **關於**。 +3. 查看文本編輯器的版本和介紹。 + +### 退出 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **退出**。 \ No newline at end of file diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/editor.md b/src/assets/loongarch64/deepin-editor/editor/zh_TW/editor.md index 102f24dc4..ca6298f5d 100644 --- a/src/assets/loongarch64/deepin-editor/editor/zh_TW/editor.md +++ b/src/assets/loongarch64/deepin-editor/editor/zh_TW/editor.md @@ -10,9 +10,9 @@ ### 執行文字編輯器 -1. 單擊任務欄上的啟動器圖示 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器介面。 -2. 上下滾動滑鼠滾輪瀏覽或透過搜尋,找到文字編輯器圖示![deepin_editor](../common/deepin_editor.svg),單擊執行。 -3. 右鍵單擊![deepin_editor](../common/deepin_editor.svg),您可以: +1. 單擊任務欄上的啟動器圖示 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器介面。 +2. 上下滾動滑鼠滾輪瀏覽或透過搜尋,找到文字編輯器圖示 ![deepin_editor](../common/deepin_editor.svg)并打開。 +3. 在啟動器中,右鍵單擊![deepin_editor](../common/deepin_editor.svg),您可以: - 單擊 **建立桌面捷徑**,在桌面建立捷徑。 - 單擊 **釘選到Dock**,將應用程式固定到Dock。 @@ -21,13 +21,13 @@ ### 關閉文字編輯器 - 在文字編輯器介面,單擊 ![close_icon](../common/close_icon.svg),關閉文字編輯器。 -- 在文字編輯器介面,單擊主選單 ![icon_menu](../common/icon_menu.svg)> **離開**, 關閉文字編輯器。 +- 在文字編輯器介面,單擊主選單 ![icon_menu](../common/icon_menu.svg)> **退出**, 關閉文字編輯器。 - 在Dock上右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),選擇 **全部關閉**, 關閉文字編輯器。 ### 查看快捷鍵 -在文字編輯器介面,使用快捷鍵 **Ctrl + Shift + ?** 打開快捷鍵預覽介面。您也可以在設定介面查看快捷鍵。熟練地使用快捷鍵,將大大提升您的操作效率。 +在文字編輯器介面上,使用快捷鍵 **Ctrl + Shift + ?** 打開快捷鍵預覽介面。您也可以在設定介面查看快捷鍵。熟練地使用快捷鍵,將大大提升您的操作效率。 ![1|hotkey](fig/hotkey.png) @@ -37,8 +37,8 @@ - 建立標籤頁/視窗 - - 單擊標籤頁上的 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **建立新標籤頁** 或使用快捷鍵 **Ctrl + T** 建立一個新的標籤頁。 - - 單擊![icon_menu](../common/icon_menu.svg) > **建立新視窗** 或使用快捷鍵 **Ctrl + N** 建立一個新的視窗。 + - 單擊標籤頁上的 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **建立新標籤頁** 或使用組合鍵 **Ctrl + T** 建立一個新的標籤頁。 + - 單擊![icon_menu](../common/icon_menu.svg) > **建立新視窗** 或使用組合鍵 **Ctrl + N** 建立一個新的視窗。 - 調整標籤頁/視窗 @@ -50,9 +50,9 @@ 當視窗中僅有一個標籤頁時,關閉標籤頁的同時也會關閉視窗。 - - 使用 快捷鍵**Ctrl + W** 關閉目前標籤頁。 + - 使用快捷鍵 **Ctrl + W** 關閉目前標籤頁。 - 單擊標籤頁上的 ![close_icon](../common/close_icon.svg) 按鈕或者單擊滑鼠中鍵,關閉目前標籤頁。 - - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 來關閉標籤頁。 + - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 關閉標籤頁。 > ![notes](../common/notes.svg)說明:如果您的檔案發生了變化而沒有儲存,文字編輯器會在關閉前提示您儲存更改。 @@ -65,28 +65,28 @@ - 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)> **開啟檔案** 或使用快捷鍵 **Ctrl + O**,在彈出的視窗中選擇檔案。 ### 儲存檔案 -- 單擊 ![icon_menu](../common/icon_menu.svg)> **儲存** 或使用快捷鍵 **Ctrl + S** ,儲存目前檔案。 -- 單擊 ![icon_menu](../common/icon_menu.svg)> **另存新檔** 或使用快捷鍵 **Ctrl + Shift + S**, 另存目前檔案。 +- 單擊 ![icon_menu](../common/icon_menu.svg)> **儲存**或使用快捷鍵 **Ctrl + S**,儲存目前檔案。 +- 單擊 ![icon_menu](../common/icon_menu.svg)> **另存新檔** 或 使用快捷鍵**Ctrl + Shift + S**, 另存目前檔案。 ### 列印檔案 在文字編輯器中使用列印,需要您連接並配置好印表機。 -1. 單擊 ![icon_menu](../common/icon_menu.svg) > **列印** 或使用快捷鍵 **Ctrl + P** 打開列印預覽。 +1. 單擊 ![icon_menu](../common/icon_menu.svg) > **列印**,也可以使用快捷鍵 **Ctrl + P** 打開列印預覽。 2. 在列印預覽介面,您可以預覽檔案,選擇印表機並設定列印頁面。 3. 在列印預覽介面,單擊 **進階設定**,可配置紙張大小、列印方式等相關參數。 4. 單擊 **列印** 即可將檔案發送到印表機列印。 -![print](fig/print_setting.png) +![pagesetup](fig/printer.png) -![print](fig/advanced_setting.png) +![printer](fig/printer_setting.png) ## 編輯文字 ### 移動游標 -除了使用方向鍵和滑鼠單擊移動游標,您還可以使用以下快捷鍵迅速移動游標: +除使用方向鍵和滑鼠單擊移動游標,您還可以使用以下快捷鍵迅速移動游標: | 功能 | 快捷鍵 | | --------------- | ------------ | @@ -112,7 +112,7 @@ 您也可以使用快捷鍵 **Alt + U/L/C** 迅速切換大小寫。 -![toggle_case](fig/d_toggle_case.png) +![toggle_case](fig/toggle_case.png) ### 突顯文字 @@ -136,21 +136,21 @@ ### 尋找文字 -1. 單擊 ![menu](../common/icon_menu.svg)> **尋找** 或使用快捷鍵 **Ctrl + F** ,打開尋找視窗。 +1. 單擊 ![menu](../common/icon_menu.svg)> **尋找** 或使用組合鍵 **Ctrl + F**,打開尋找視窗。 2. 在尋找視窗中,輸入要搜尋的文字。 3. 單擊 **上一個**、**下一個** 逐個尋找,或使用 **Enter** 鍵尋找下一個匹配項。 4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉尋找視窗。 -> ![tips](../common/tips.svg)竅門:選中一段文字,再選擇尋找,則這段文字會自動出現在尋找視窗中。 +> ![tips](../common/tips.svg)竅門:選中一段文字,再進行搜尋,則這段文字會自動出現在尋找視窗中。 ### 取代文字 -1. 單擊 ![menu](../common/icon_menu.svg)> **取代** 或使用快捷鍵 **Ctrl + H**,打開取代視窗。 -2. 在取代為視窗中,輸入要取代的文字以及新文字。 +1. 單擊 ![menu](../common/icon_menu.svg)> **取代** 或使用組合鍵 **Ctrl + H**,打開取代視窗。 +2. 在取代視窗中,輸入要取代的文字以及新文字。 3. 單擊 **取代** 逐個取代,單擊 **取代剩餘部份**、**全部取代** 一次性取代剩餘的或所有的匹配文字。單擊 **跳過** 不取代目前匹配的文字。 4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉取代視窗。 ### 前往該行 -使用該功能可以迅速前往到任一行。在右鍵選單中選擇 **前往該行** 或者使用快捷键 **Ctrl + G**,輸入行號即可前往到相應行。 +使用該功能可以迅速前往到任一行。在右鍵選單中選擇 **前往該行** 或者使用组合键 **Ctrl + G**,輸入行號即可前往到相應行。 ### 編輯行 @@ -176,23 +176,40 @@ 1. 使用文字編輯器打開檔案,單擊右鍵,選擇 **開啟唯讀模式**。 2. 在唯讀模式下,單擊右鍵,選擇 **關閉唯讀模式**。 -![read_only](fig/d_read_only.png) +![read_only](fig/read_only.png) -![read_only](fig/d_read_only_02.png) +![read_only](fig/read_only_02.png) + +### 語音朗讀 + +1. 選取一段文字後,點選右鍵選擇 **語音朗讀**,系統將以語音唸出選取的文字。 + +2. 朗讀過程中,點選朗讀控制項上的關閉按鈕即可結束語音朗讀。 + + > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵選單中 **語音朗讀** 不可啟動,處置灰狀態。 + +![read_only](fig/reading.png) + +### **語音聽寫** + +1. 在文字編輯區域內,點選滑鼠右鍵選擇 **語音聽寫**,即可透過麥克風輸入語音,轉換的文字將插入到游標所在位置。 +2. 在聽寫模式下,點選聽寫控制項上的關閉按鈕即可結束語音聽寫。 + +![read-only](fig/listen.png) ### 列编辑 在文字編輯器介面,按住鍵盤上的 **Alt** 鍵不放,滑鼠左鍵單擊多列啟動列編輯模式,為多行程式碼同時編輯相同的內容,提高工作效率。 -![column mode](fig/column_mode.png) +![column mode](fig/column mode.png) ### 顏色標記 -在文字編輯器介面,單擊滑鼠右鍵選擇 **顏色標記**,在其下拉選單中進行選擇。 +在文字編輯器介面,滑鼠右鍵選擇 **顏色標記**,在其下拉選單中進行選擇。 -![color](fig/d_color_tag.png) +![color](fig/color_tag.png) - - **標記**:對某一行或某一段文字內容添加顏色標記;有8種顏色按鈕可供選擇。 + - **添加標記**:對某一行或某一段文字內容添加顏色標記;有8種顏色按鈕可供選擇。 + 將游標定在某一行,標記目前所在的行。 + 選中一段文字內容後,標記選中的文字內容。 - **標記所有**:將文字內容全部標記或對已選中的文字內容,在全文中標記匹配項;有8種顏色按鈕可供選擇。 @@ -210,8 +227,8 @@ - 添加書籤 + 滑鼠左鍵單擊 ![icon](../common/bookmark_normal_light.svg),為該行添加書籤。 - + 滑鼠右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加書籤。 - + 將游標定在文字中任意一行,使用快捷鍵 **Ctrl + F2** 為該行添加書籤。 + + 滑鼠右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + + 將游標定在文字中任意一行,使用組合鍵 **Ctrl + F2** 為該行添加一個書籤。 - 刪除書籤 @@ -225,15 +242,15 @@ ### 注釋管理 -在文字編輯器介面,您可以對副檔名為cpp 、java 、py等程式碼類型的檔案進行添加注釋的操作。 +在文字編輯器介面,您可對副檔名為cpp 、java 、py等程式碼類型的檔案進行添加注釋的操作。 - 添加注釋 - + 選中一段文字內容,單擊右鍵並選擇 **添加注釋**。 - + 選中一段文字內容,使用快捷鍵 **Alt + A** 添加注釋。 + + 選中一段文字內容,在右鍵選單選擇 **添加注釋**。 + + 選中一段文字內容,使用組合鍵 **Alt + A** 添加注釋。 - 取消注釋 - + 選中一段已添加注釋的文字內容,單擊右鍵並選擇 **取消注釋**。 - + 選中一段已添加注釋的文字內容,使用快捷鍵 **Alt + Z** 取消注釋。 + + 選中一段已添加注釋的文字內容,在右鍵選單中選擇 **取消注釋**。 + + 選中一段已添加注釋的文字內容,使用組合鍵 **Alt + Z** 取消注釋。 >![notes](../common/notes.svg)說明:支援不同程式碼語言的注釋,具體以實際為主。例如C,C#,Java注釋符號為 //,Python 注釋符號為 #。 @@ -250,14 +267,14 @@ 1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設定**。 2. 在基本設定選項,您可以選擇: - - 設定字體樣式,選擇字體和字體大小。 + - 設定字體樣式,選擇字體樣式和字體大小。 - 勾選 **文字換行**,在編輯區自動換行。 - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開目前層次或所有層次。 - 勾選 **顯示行號**,在左側欄顯示行號。 - 勾選**當前行高亮**,游標所在的行突顯顯示。 - - 勾選 **顯示書籤圖示**,在左側欄顯示書籤圖示。 - - 勾選 **顯示空白制符/制表符**,顯示文字中的空白字符和制表符,您也可以手動輸入或刪除空白字符和制表符。 - > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 來調節文字編輯器的預設字號。使用 **Ctrl + 0** 復原預設字號。 + - 勾選 **顯示書籤圖標**,在左側欄顯示書籤圖標。 + - 勾選 **顯示空白制符/制表符**,顯示文字中的空白字符和制表符,您也可手動輸入或刪除空白字符和制表符。 + > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 調節文字編輯器的預設字號。使用 **Ctrl + 0** 復原預設字號。 @@ -300,7 +317,7 @@ 2. 單擊 **關於**。 3. 查看文字編輯器的版本和介紹。 -### 離開 +### 退出 1. 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 -2. 單擊 **離開**。 \ No newline at end of file +2. 單擊 **退出**。 \ No newline at end of file diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/advanced_setting.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/advanced_setting.png deleted file mode 100644 index 7ecf14a7f..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/advanced_setting.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/close.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/close.png deleted file mode 100644 index eb5704b81..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/close.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/color_tag.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/color_tag.png deleted file mode 100644 index 31ebc4156..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/color_tag.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/colortag.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/colortag.png new file mode 100644 index 000000000..158d2be62 Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/colortag.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/column_mode.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/column_mode.png index efeb5f854..d21f318ee 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/column_mode.png and b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/column_mode.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_color_tag.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_color_tag.png deleted file mode 100644 index a5923c736..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_color_tag.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_read-only_02.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_read-only_02.png deleted file mode 100644 index db0fa1252..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_read-only_02.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_read_only.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_read_only.png deleted file mode 100644 index af2fcf4fa..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_read_only.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_read_only_02.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_read_only_02.png deleted file mode 100644 index 022dba9fb..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_read_only_02.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_toggle_case.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_toggle_case.png deleted file mode 100644 index be9bdc902..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/d_toggle_case.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/highlight.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/highlight.png index f16308bd6..d564bb7f4 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/highlight.png and b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/highlight.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/listen.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/listen.png index d397f90ea..a6515ac19 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/listen.png and b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/listen.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/overview.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/overview.png index 764cf82fc..92faa4130 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/overview.png and b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/overview.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/print_setting.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/print_setting.png deleted file mode 100644 index 9d08dc8e9..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/print_setting.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/printer.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/printer.png new file mode 100644 index 000000000..cc50a7a3d Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/printer.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/printer_setting.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/printer_setting.png new file mode 100644 index 000000000..ae803c9dd Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/printer_setting.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/read_only.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/read_only.png index 96658be2a..1bbf8d415 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/read_only.png and b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/read_only.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/read_only_02.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/read_only_02.png index a5f735b47..607c69111 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/read_only_02.png and b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/read_only_02.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/reading.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/reading.png index 7fe6846cd..f14caf7c6 100644 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/reading.png and b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/reading.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/text_translation.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/text_translation.png deleted file mode 100644 index f76230034..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/text_translation.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/toggle_case.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/toggle_case.png deleted file mode 100644 index 32351990a..000000000 Binary files a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/toggle_case.png and /dev/null differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/togglecase.png b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/togglecase.png new file mode 100644 index 000000000..d6ea22c90 Binary files /dev/null and b/src/assets/loongarch64/deepin-editor/editor/zh_TW/fig/togglecase.png differ diff --git a/src/assets/loongarch64/deepin-editor/editor/zh_TW/p_editor.md b/src/assets/loongarch64/deepin-editor/editor/zh_TW/p_editor.md new file mode 100644 index 000000000..ca6298f5d --- /dev/null +++ b/src/assets/loongarch64/deepin-editor/editor/zh_TW/p_editor.md @@ -0,0 +1,323 @@ +# 文字編輯器|deepin-editor| + +## 概述 + +文字編輯器是一個簡單的文字編輯工具。您可以用它書寫簡單的文字檔案,也可以使用它的進階特性,讓它成為一個程式碼編輯工具,支援程式碼語法突顯。 + +![overview](fig/overview.png) + +## 使用入門 + +### 執行文字編輯器 + +1. 單擊任務欄上的啟動器圖示 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器介面。 +2. 上下滾動滑鼠滾輪瀏覽或透過搜尋,找到文字編輯器圖示 ![deepin_editor](../common/deepin_editor.svg)并打開。 +3. 在啟動器中,右鍵單擊![deepin_editor](../common/deepin_editor.svg),您可以: + + - 單擊 **建立桌面捷徑**,在桌面建立捷徑。 + - 單擊 **釘選到Dock**,將應用程式固定到Dock。 + - 單擊 **開機啟動**,將應用程式添加到開機啟動項,在電腦開機時自動執行該應用。 + +### 關閉文字編輯器 + +- 在文字編輯器介面,單擊 ![close_icon](../common/close_icon.svg),關閉文字編輯器。 +- 在文字編輯器介面,單擊主選單 ![icon_menu](../common/icon_menu.svg)> **退出**, 關閉文字編輯器。 +- 在Dock上右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),選擇 **全部關閉**, 關閉文字編輯器。 + + +### 查看快捷鍵 + +在文字編輯器介面上,使用快捷鍵 **Ctrl + Shift + ?** 打開快捷鍵預覽介面。您也可以在設定介面查看快捷鍵。熟練地使用快捷鍵,將大大提升您的操作效率。 + +![1|hotkey](fig/hotkey.png) + +## 基本操作 + +### 管理標籤頁 + +- 建立標籤頁/視窗 + + - 單擊標籤頁上的 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **建立新標籤頁** 或使用組合鍵 **Ctrl + T** 建立一個新的標籤頁。 + - 單擊![icon_menu](../common/icon_menu.svg) > **建立新視窗** 或使用組合鍵 **Ctrl + N** 建立一個新的視窗。 + +- 調整標籤頁/視窗 + + - 拖曳同一視窗內的標籤頁重新排序。 + - 滾動滑鼠切換同一視窗內的標籤頁。 + - 移出標籤頁建立一個新的視窗,或者從一個視窗移到另外一個視窗中。 + +- 關閉標籤頁/視窗 + + 當視窗中僅有一個標籤頁時,關閉標籤頁的同時也會關閉視窗。 + + - 使用快捷鍵 **Ctrl + W** 關閉目前標籤頁。 + - 單擊標籤頁上的 ![close_icon](../common/close_icon.svg) 按鈕或者單擊滑鼠中鍵,關閉目前標籤頁。 + - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 關閉標籤頁。 + + > ![notes](../common/notes.svg)說明:如果您的檔案發生了變化而沒有儲存,文字編輯器會在關閉前提示您儲存更改。 + +### 開啟檔案 + +您可採用以下方式開啟一個或同時開啟多個文字檔案,選中的檔案將會在新標籤頁開啟: + +- 直接拖動檔案到文字編輯器介面或其圖示上。 +- 右鍵單擊檔案,選擇 **用其他程式開啟** > **文字編輯器**。選擇文字編輯器為預設開啟程式後,可直接雙擊檔案開啟。 +- 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)> **開啟檔案** 或使用快捷鍵 **Ctrl + O**,在彈出的視窗中選擇檔案。 + +### 儲存檔案 +- 單擊 ![icon_menu](../common/icon_menu.svg)> **儲存**或使用快捷鍵 **Ctrl + S**,儲存目前檔案。 +- 單擊 ![icon_menu](../common/icon_menu.svg)> **另存新檔** 或 使用快捷鍵**Ctrl + Shift + S**, 另存目前檔案。 + + +### 列印檔案 + +在文字編輯器中使用列印,需要您連接並配置好印表機。 + +1. 單擊 ![icon_menu](../common/icon_menu.svg) > **列印**,也可以使用快捷鍵 **Ctrl + P** 打開列印預覽。 +2. 在列印預覽介面,您可以預覽檔案,選擇印表機並設定列印頁面。 +3. 在列印預覽介面,單擊 **進階設定**,可配置紙張大小、列印方式等相關參數。 +4. 單擊 **列印** 即可將檔案發送到印表機列印。 + +![pagesetup](fig/printer.png) + +![printer](fig/printer_setting.png) + +## 編輯文字 + +### 移動游標 + +除使用方向鍵和滑鼠單擊移動游標,您還可以使用以下快捷鍵迅速移動游標: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 儲存游標位置 | Ctrl + Shift + > | +| 重設游標位置(跳轉到上次游標儲存的位置) | Ctrl + Shift + < | +| 後一個字詞 (游標向右跳過一個字詞) | Ctrl + 右方向鍵 | +| 前一個字詞 (游標向左跳過一個字詞) | Ctrl + 左方向鍵 | +| 移動到行結尾 | End | +| 移動到行開頭 | Home | +| 移動到文字結尾 | Ctrl + End | +| 移動到文字開頭 | Ctrl + Home | +| 移到行縮排區塊 | Ctrl + M | +| 往後一對 (游標移動到右括號的後面) | Alt + P | +| 往前一對(游標移動到左括號的前面) | Alt + N | + +### 切換大小寫 + +切換大小寫功能可以將選中文字全部改為大寫字母、小寫字母或者首字母大寫。 + +1. 選中待更改的文字內容。 +2. 單擊右鍵,選擇 **變更大小寫**。 +3. 選擇 **大寫**/**小寫**/**首字母大寫** 選項。文字格式的更改會立即生效。 + +您也可以使用快捷鍵 **Alt + U/L/C** 迅速切換大小寫。 + +![toggle_case](fig/toggle_case.png) + +### 突顯文字 + +文字編輯器支援突顯不同類型的文字。單擊底部狀態欄最右側的三角符號, 選擇某種文字類型。若文字中有相應內容則會自動突顯。 + +![highlight](fig/highlight.png) + +### 刪除文字 +除了向左或向右逐個刪除字元外,您還可以使用以下快捷鍵迅速刪除字元: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 刪除至行結尾所有字元 | Ctrl + K | +| 刪除目前整行 | Ctrl + Shift + K | +| 刪除前一個字詞 | Alt + Shift + N | +| 刪除後一個字詞 | Alt + Shift + M | + +### 復原操作 + +如果在文字編輯時發生誤操作,您可以使用快捷鍵 **Ctrl + Z** 撤銷操作, 或者在右鍵選單中選擇 **復原**。 + +### 尋找文字 + +1. 單擊 ![menu](../common/icon_menu.svg)> **尋找** 或使用組合鍵 **Ctrl + F**,打開尋找視窗。 +2. 在尋找視窗中,輸入要搜尋的文字。 +3. 單擊 **上一個**、**下一個** 逐個尋找,或使用 **Enter** 鍵尋找下一個匹配項。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉尋找視窗。 + +> ![tips](../common/tips.svg)竅門:選中一段文字,再進行搜尋,則這段文字會自動出現在尋找視窗中。 + +### 取代文字 +1. 單擊 ![menu](../common/icon_menu.svg)> **取代** 或使用組合鍵 **Ctrl + H**,打開取代視窗。 +2. 在取代視窗中,輸入要取代的文字以及新文字。 +3. 單擊 **取代** 逐個取代,單擊 **取代剩餘部份**、**全部取代** 一次性取代剩餘的或所有的匹配文字。單擊 **跳過** 不取代目前匹配的文字。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉取代視窗。 + +### 前往該行 +使用該功能可以迅速前往到任一行。在右鍵選單中選擇 **前往該行** 或者使用组合键 **Ctrl + G**,輸入行號即可前往到相應行。 + +### 編輯行 + +您可以使用以下快捷鍵迅速編輯行: + +| 功能 | 快捷鍵 | +| ------------ | ------------ | +| 於上方換行(在上方插入一行) | Ctrl + Enter | +| 於下方換行(在下方插入一行) | Ctrl + Shift + Enter | +| 複製一行 | Ctrl + Shift + D | +| 切到上一行(與上一行交換位置) | Ctrl + Shift + Up | +| 切到下一行(與下一行交換位置) | Ctrl + Shift + Down | +| 捲到上一行 | Super + Shift + Up | +| 捲到下一行 | Super + Shift + Down | +| 標記 | Alt + H | +| 取消標記 | Alt + Shift + H | +| 複製一行 | Super + C | +| 剪下一行 | Super + X | +| 合併一行 | Ctrl + J | + +### 開啟/關閉唯讀模式 + +1. 使用文字編輯器打開檔案,單擊右鍵,選擇 **開啟唯讀模式**。 +2. 在唯讀模式下,單擊右鍵,選擇 **關閉唯讀模式**。 + +![read_only](fig/read_only.png) + +![read_only](fig/read_only_02.png) + +### 語音朗讀 + +1. 選取一段文字後,點選右鍵選擇 **語音朗讀**,系統將以語音唸出選取的文字。 + +2. 朗讀過程中,點選朗讀控制項上的關閉按鈕即可結束語音朗讀。 + + > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵選單中 **語音朗讀** 不可啟動,處置灰狀態。 + +![read_only](fig/reading.png) + +### **語音聽寫** + +1. 在文字編輯區域內,點選滑鼠右鍵選擇 **語音聽寫**,即可透過麥克風輸入語音,轉換的文字將插入到游標所在位置。 +2. 在聽寫模式下,點選聽寫控制項上的關閉按鈕即可結束語音聽寫。 + +![read-only](fig/listen.png) + + +### 列编辑 +在文字編輯器介面,按住鍵盤上的 **Alt** 鍵不放,滑鼠左鍵單擊多列啟動列編輯模式,為多行程式碼同時編輯相同的內容,提高工作效率。 + +![column mode](fig/column mode.png) + +### 顏色標記 + +在文字編輯器介面,滑鼠右鍵選擇 **顏色標記**,在其下拉選單中進行選擇。 + +![color](fig/color_tag.png) + + - **添加標記**:對某一行或某一段文字內容添加顏色標記;有8種顏色按鈕可供選擇。 + + 將游標定在某一行,標記目前所在的行。 + + 選中一段文字內容後,標記選中的文字內容。 + - **標記所有**:將文字內容全部標記或對已選中的文字內容,在全文中標記匹配項;有8種顏色按鈕可供選擇。 + + 將游標定在任意一行,將文字內容全部標記。 + + 選中一段文字內容,在全文中標記匹配項。 + - **清除上次標記**:清除上次標記操作。 + - **清除所有標記**:清除目前所有標記。 + + + +### 書籤管理 + +在文字編輯器設定介面,勾選 **顯示書籤圖標** 後,您可以為任意一行的文字內容添加書籤,將滑鼠遊標移至左側欄任意一行處會顯示 ![icon](../common/bookmark_normal_light.svg),添加成功後該行的書籤圖示會變為藍色填充的圖示 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 + +- 添加書籤 + + + 滑鼠左鍵單擊 ![icon](../common/bookmark_normal_light.svg),為該行添加書籤。 + + 滑鼠右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + + 將游標定在文字中任意一行,使用組合鍵 **Ctrl + F2** 為該行添加一個書籤。 + +- 刪除書籤 + + + 滑鼠左鍵單擊已填充顏色的書籤圖示,直接刪除該行書籤。 + + 滑鼠右鍵單擊已填充顏色的書籤圖示,選擇 **清除書籤**,刪除該行書籤。 + + 滑鼠右鍵單擊書籤圖示,選擇 **清除所有書籤**,刪除該文字的全部書籤。 + + >![icon](../common/notes.svg)說明:滑鼠移到左側行號前面才會顯示書籤圖示,移出書籤區域,書籤圖示消失。添加書籤後,該圖示一直顯示。 + + + +### 注釋管理 + +在文字編輯器介面,您可對副檔名為cpp 、java 、py等程式碼類型的檔案進行添加注釋的操作。 + +- 添加注釋 + + 選中一段文字內容,在右鍵選單選擇 **添加注釋**。 + + 選中一段文字內容,使用組合鍵 **Alt + A** 添加注釋。 + +- 取消注釋 + + 選中一段已添加注釋的文字內容,在右鍵選單中選擇 **取消注釋**。 + + 選中一段已添加注釋的文字內容,使用組合鍵 **Alt + Z** 取消注釋。 + + >![notes](../common/notes.svg)說明:支援不同程式碼語言的注釋,具體以實際為主。例如C,C#,Java注釋符號為 //,Python 注釋符號為 #。 + + + +## 主選單 + +在主選單中,您可以 建立新視窗、建立新標籤頁、[尋找文字](#尋找文字)、[取代文字](#取代文字)、儲存檔案、切換視窗主題、查看說明手冊,了解文字編輯器的更多訊息。 + +### 設定 +您可以對基本訊息、快捷鍵和進階訊息進行設定。 + +#### 基本設定 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設定**。 +2. 在基本設定選項,您可以選擇: + - 設定字體樣式,選擇字體樣式和字體大小。 + - 勾選 **文字換行**,在編輯區自動換行。 + - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開目前層次或所有層次。 + - 勾選 **顯示行號**,在左側欄顯示行號。 + - 勾選**當前行高亮**,游標所在的行突顯顯示。 + - 勾選 **顯示書籤圖標**,在左側欄顯示書籤圖標。 + - 勾選 **顯示空白制符/制表符**,顯示文字中的空白字符和制表符,您也可手動輸入或刪除空白字符和制表符。 + > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 調節文字編輯器的預設字號。使用 **Ctrl + 0** 復原預設字號。 + + + +#### 快捷鍵設定 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設定**,在 **快捷鍵** 選項查看目前快捷鍵。 +2. 選擇一種按鍵映射。 +3. 單擊並重新輸入快捷鍵,可以自訂快捷鍵。 + + > ![notes](../common/notes.svg)說明: 按鍵映射允許您選擇某一種鍵盤快捷鍵。您可以使用標準快捷鍵、Emacs快捷鍵、或自訂快捷鍵,以符合您的使用習慣。 + + +#### 進階設定 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設定**。 +2. 在 **進階設定** 選項,您可以設定: + - 視窗大小:一般、最大或全螢幕。 + - Tab寬度:Tab縮排所占用的空間大小。 + + + +### 主題 + +視窗主題包含亮色主題、暗色主題和系統主題。 + +1. 在文字編輯器介面,單擊![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **主題**,選擇一個主題顏色。 + +### 說明 + +查看說明手冊,進一步了解和使用文字編輯器。 + +1. 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **說明**。 +3. 查看文字編輯器的說明手冊。 + +### 關於 + +1. 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **關於**。 +3. 查看文字編輯器的版本和介紹。 + +### 退出 + +1. 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **退出**。 \ No newline at end of file diff --git "a/src/assets/loongarch64/deepin-editor/editor/\344\277\256\350\256\242\350\256\260\345\275\225.txt" "b/src/assets/loongarch64/deepin-editor/editor/\344\277\256\350\256\242\350\256\260\345\275\225.txt" deleted file mode 100755 index 959608244..000000000 --- "a/src/assets/loongarch64/deepin-editor/editor/\344\277\256\350\256\242\350\256\260\345\275\225.txt" +++ /dev/null @@ -1,3 +0,0 @@ -龙芯3A5000 文本编辑器修订记录 -版本 5.9.16 -此版本镜像无语音助手,所以不支持语音朗读、语音听写、文本翻译这三个功能 \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/+.svg b/src/assets/loongarch64/editor/common/+.svg new file mode 100644 index 000000000..886d90a83 --- /dev/null +++ b/src/assets/loongarch64/editor/common/+.svg @@ -0,0 +1,13 @@ + + + + + + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/-.svg b/src/assets/loongarch64/editor/common/-.svg new file mode 100644 index 000000000..594bc2ea7 --- /dev/null +++ b/src/assets/loongarch64/editor/common/-.svg @@ -0,0 +1,13 @@ + + + + - + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/0.svg b/src/assets/loongarch64/editor/common/0.svg new file mode 100644 index 000000000..aa1426549 --- /dev/null +++ b/src/assets/loongarch64/editor/common/0.svg @@ -0,0 +1,12 @@ + + + + 0 + Created with Sketch. + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/A.svg b/src/assets/loongarch64/editor/common/A.svg new file mode 100644 index 000000000..909d1da3e --- /dev/null +++ b/src/assets/loongarch64/editor/common/A.svg @@ -0,0 +1,13 @@ + + + + A + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/Alt.svg b/src/assets/loongarch64/editor/common/Alt.svg new file mode 100644 index 000000000..5903a36f2 --- /dev/null +++ b/src/assets/loongarch64/editor/common/Alt.svg @@ -0,0 +1,15 @@ + + + + Alt + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/C.svg b/src/assets/loongarch64/editor/common/C.svg new file mode 100644 index 000000000..c1540bf04 --- /dev/null +++ b/src/assets/loongarch64/editor/common/C.svg @@ -0,0 +1,13 @@ + + + + C + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/Ctrl.svg b/src/assets/loongarch64/editor/common/Ctrl.svg new file mode 100644 index 000000000..a2bb6738b --- /dev/null +++ b/src/assets/loongarch64/editor/common/Ctrl.svg @@ -0,0 +1,16 @@ + + + + Ctrl + Created with Sketch. + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/Enter.svg b/src/assets/loongarch64/editor/common/Enter.svg new file mode 100644 index 000000000..1994b268a --- /dev/null +++ b/src/assets/loongarch64/editor/common/Enter.svg @@ -0,0 +1,17 @@ + + + + Enter + Created with Sketch. + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/Esc.svg b/src/assets/loongarch64/editor/common/Esc.svg new file mode 100644 index 000000000..ad8e4937c --- /dev/null +++ b/src/assets/loongarch64/editor/common/Esc.svg @@ -0,0 +1,15 @@ + + + + Esc + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/F.svg b/src/assets/loongarch64/editor/common/F.svg new file mode 100644 index 000000000..781b440c8 --- /dev/null +++ b/src/assets/loongarch64/editor/common/F.svg @@ -0,0 +1,13 @@ + + + + F + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/F2.svg b/src/assets/loongarch64/editor/common/F2.svg new file mode 100644 index 000000000..051adae45 --- /dev/null +++ b/src/assets/loongarch64/editor/common/F2.svg @@ -0,0 +1,14 @@ + + + + F2 + Created with Sketch. + + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/G.svg b/src/assets/loongarch64/editor/common/G.svg new file mode 100644 index 000000000..b57ed109b --- /dev/null +++ b/src/assets/loongarch64/editor/common/G.svg @@ -0,0 +1,13 @@ + + + + G + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/H.svg b/src/assets/loongarch64/editor/common/H.svg new file mode 100644 index 000000000..9542c98f0 --- /dev/null +++ b/src/assets/loongarch64/editor/common/H.svg @@ -0,0 +1,13 @@ + + + + H + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/L.svg b/src/assets/loongarch64/editor/common/L.svg new file mode 100644 index 000000000..bb0619d79 --- /dev/null +++ b/src/assets/loongarch64/editor/common/L.svg @@ -0,0 +1,13 @@ + + + + L + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/N.svg b/src/assets/loongarch64/editor/common/N.svg new file mode 100644 index 000000000..b7033ae0f --- /dev/null +++ b/src/assets/loongarch64/editor/common/N.svg @@ -0,0 +1,13 @@ + + + + N + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/O.svg b/src/assets/loongarch64/editor/common/O.svg new file mode 100644 index 000000000..db272edec --- /dev/null +++ b/src/assets/loongarch64/editor/common/O.svg @@ -0,0 +1,13 @@ + + + + O + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/P.svg b/src/assets/loongarch64/editor/common/P.svg new file mode 100644 index 000000000..8b5492412 --- /dev/null +++ b/src/assets/loongarch64/editor/common/P.svg @@ -0,0 +1,13 @@ + + + + P + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/QM.svg b/src/assets/loongarch64/editor/common/QM.svg new file mode 100644 index 000000000..8b2af9aa6 --- /dev/null +++ b/src/assets/loongarch64/editor/common/QM.svg @@ -0,0 +1,13 @@ + + + + QM + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/S.svg b/src/assets/loongarch64/editor/common/S.svg new file mode 100644 index 000000000..8272a7858 --- /dev/null +++ b/src/assets/loongarch64/editor/common/S.svg @@ -0,0 +1,13 @@ + + + + S + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/Shift.svg b/src/assets/loongarch64/editor/common/Shift.svg new file mode 100644 index 000000000..cdc7ce5f0 --- /dev/null +++ b/src/assets/loongarch64/editor/common/Shift.svg @@ -0,0 +1,18 @@ + + + + Shift + Created with Sketch. + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/T.svg b/src/assets/loongarch64/editor/common/T.svg new file mode 100644 index 000000000..9bc555095 --- /dev/null +++ b/src/assets/loongarch64/editor/common/T.svg @@ -0,0 +1,13 @@ + + + + T + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/U.svg b/src/assets/loongarch64/editor/common/U.svg new file mode 100644 index 000000000..c6c24af89 --- /dev/null +++ b/src/assets/loongarch64/editor/common/U.svg @@ -0,0 +1,13 @@ + + + + U + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/W.svg b/src/assets/loongarch64/editor/common/W.svg new file mode 100644 index 000000000..cb22b6f4a --- /dev/null +++ b/src/assets/loongarch64/editor/common/W.svg @@ -0,0 +1,13 @@ + + + + W + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/Z.svg b/src/assets/loongarch64/editor/common/Z.svg new file mode 100644 index 000000000..574de2344 --- /dev/null +++ b/src/assets/loongarch64/editor/common/Z.svg @@ -0,0 +1,13 @@ + + + + Z + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/attention.svg b/src/assets/loongarch64/editor/common/attention.svg new file mode 100644 index 000000000..23149c058 --- /dev/null +++ b/src/assets/loongarch64/editor/common/attention.svg @@ -0,0 +1,9 @@ + + + attention + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/bookmark_normal_light.svg b/src/assets/loongarch64/editor/common/bookmark_normal_light.svg new file mode 100644 index 000000000..6076d18b7 --- /dev/null +++ b/src/assets/loongarch64/editor/common/bookmark_normal_light.svg @@ -0,0 +1,13 @@ + + + + bookmark_normal_light + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/bookmarkbig_checked_light.svg b/src/assets/loongarch64/editor/common/bookmarkbig_checked_light.svg new file mode 100644 index 000000000..d00210a17 --- /dev/null +++ b/src/assets/loongarch64/editor/common/bookmarkbig_checked_light.svg @@ -0,0 +1,24 @@ + + + + bookmarkbig_checked_light + Created with Sketch. + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/close_icon.svg b/src/assets/loongarch64/editor/common/close_icon.svg new file mode 100644 index 000000000..9047265cc --- /dev/null +++ b/src/assets/loongarch64/editor/common/close_icon.svg @@ -0,0 +1,15 @@ + + + + Rectangle 9 + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/deepin_editor.svg b/src/assets/loongarch64/editor/common/deepin_editor.svg new file mode 100644 index 000000000..0d79a2821 --- /dev/null +++ b/src/assets/loongarch64/editor/common/deepin_editor.svg @@ -0,0 +1,61 @@ + + + apps/128/deepin-editor + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/deepin_launcher.svg b/src/assets/loongarch64/editor/common/deepin_launcher.svg new file mode 100644 index 000000000..55c2fd125 --- /dev/null +++ b/src/assets/loongarch64/editor/common/deepin_launcher.svg @@ -0,0 +1,92 @@ + + + places/128/deepin-launcher + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/icon_menu.svg b/src/assets/loongarch64/editor/common/icon_menu.svg new file mode 100644 index 000000000..35dd6eacc --- /dev/null +++ b/src/assets/loongarch64/editor/common/icon_menu.svg @@ -0,0 +1,84 @@ + + + + + + image/svg+xml + + img_upload + + + + + + img_upload + Created with Sketch. + + + + + + + + + + + + + diff --git a/src/assets/loongarch64/editor/common/next.svg b/src/assets/loongarch64/editor/common/next.svg new file mode 100644 index 000000000..ba61fc3e5 --- /dev/null +++ b/src/assets/loongarch64/editor/common/next.svg @@ -0,0 +1,11 @@ + + + + next + Created with Sketch. + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/next_down.svg b/src/assets/loongarch64/editor/common/next_down.svg new file mode 100644 index 000000000..95baac3db --- /dev/null +++ b/src/assets/loongarch64/editor/common/next_down.svg @@ -0,0 +1,15 @@ + + + + +next +Created with Sketch. + + + + + diff --git a/src/assets/loongarch64/editor/common/notes.svg b/src/assets/loongarch64/editor/common/notes.svg new file mode 100644 index 000000000..e9a3aa60a --- /dev/null +++ b/src/assets/loongarch64/editor/common/notes.svg @@ -0,0 +1,11 @@ + + + notes + + + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/common/plus_icon.svg b/src/assets/loongarch64/editor/common/plus_icon.svg new file mode 100644 index 000000000..6b69c7bc6 --- /dev/null +++ b/src/assets/loongarch64/editor/common/plus_icon.svg @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/src/assets/loongarch64/editor/common/tips.svg b/src/assets/loongarch64/editor/common/tips.svg new file mode 100644 index 000000000..011c05f4b --- /dev/null +++ b/src/assets/loongarch64/editor/common/tips.svg @@ -0,0 +1,9 @@ + + + tips + + + + + + \ No newline at end of file diff --git a/src/assets/loongarch64/editor/en_US/editor.md b/src/assets/loongarch64/editor/en_US/editor.md new file mode 100644 index 000000000..69d47aab1 --- /dev/null +++ b/src/assets/loongarch64/editor/en_US/editor.md @@ -0,0 +1,306 @@ +# Text Editor|deepin-editor| + +## Overview + +Text Editor is a simple text editing tool. You can use it to write a simple text document, or make it a code editing tool with its advanced features which support code syntax highlighting. + +![overview](fig/overview.png) + +## Guide + +### Run Text Editor + +1. Click the Launcher icon ![deepin_launcher](../common/deepin_launcher.svg) in the Dock to enter the Launcher interface. +2. Locate Text Editor ![deepin_editor](../common/deepin_editor.svg) by scrolling the mouse wheel or searching "text editor" in the Launcher interface, and click it to run. +3. In Launcher, right-click Text Editor to: + - Click **Send to desktop** to create a desktop shortcut. + - Click **Send to dock** to fix it in the Dock. + - Click **Add to startup** to add the application to startup, and it will automatically run when the system starts up. + +### Exit Text Editor + +- On the Text Editor interface, click ![close](../common/close_icon.svg) to exit. +- On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg)> **Exit** to exit. +- Right-click ![deepin_editor](../common/deepin_editor.svg) in the Dock, and select **Close All** to exit. + +### View Shortcuts + +On the Text Editor Interface, press **Ctrl** + **Shift** + **?** to view all the shortcuts. You can also check shortcuts in the Settings. Proficiency in shortcuts will greatly improve your efficiency. + +![1|hotkey](fig/hotkey.png) + +## Basic Operations + +### Manage Tabs + +- Create New Tabs/Windows + - Click ![plus_icon](../common/+.svg)or ![icon_menu](../common/icon_menu.svg)> **New tab** on the title bar or press **Ctrl + T** to create a new tab. + - Click ![icon_menu](../common/icon_menu.svg)> **New window** or press **Ctrl + N** to create a new window. + +- Adjust Tabs/Windows + - Drag the tab in the same window to reorder tabs. + - Scroll the mouse wheel on the title of a tab to reorder tabs in the same window. + - Move the tab out of the window to create a new window or move the tab from one window to another. + +- Close Tabs /Windows + + The window will be closed as well when there is only one tab in the window. + + - Press **Ctrl + W** to close the file on the file interface. + - Move the cursor to the file title, and click the ![close](../common/close_icon.svg) icon there or the mouse middle button to close the file. + - Right-click the file title and select **Close tab** or **Close other tabs** or **More options** to close the tabs. + +> ![notes](../common/notes.svg) Notes: If you make changes to the file but does not save it, you will be prompted by Text Editor to save before closing the file. + +### Open Files + +You can open one or multiple text files at one time in the following ways, and the selected file will open in the new tab: + +- Drag the file directly to the Text Editor interface or the Text Editor icon. +- Right-click the file and select **Open with** > **Text Editor**. After selecting Text Editor as the default application for text files in Control Center, you can double-click the file to open it directly. +- On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg)> **Open file**, or use the shortcuts **Ctrl + O** to open the file in File Manager. + +### Save Files + +- Press **Ctrl + S** or click ![icon_menu](../common/icon_menu.svg)> **Save** to save the current document. +- Press **Ctrl + Shift + S** or click ![icon_menu](../common/icon_menu.svg)> **Save as** to save the file as a new one. + +### Print Files + +To print a file in the Text Editor interface, you should connect and set up the printer first. + +1. Click ![icon_menu](../common/icon_menu.svg)> **Print**, or press **Ctrl + P** to open the print preview interface. +2. On the preview interface, preview the document, select a printer, and set the printing page. +3. Click the **Advanced** option on the preview interface to select parameters including paper size and layout. +4. Click **Print** to start printing at the printer selected. + +![pagesetup](fig/printer.png) + +![printer](fig/printer_setting.png) + +## Edit Texts + +### Move Cursor + +In addition to the arrow keys and mouse clicks, you can also use the following shortcuts to move the cursor quickly: + +| Function | Shortcuts | +| --------------- | ------------ | +| Save cursor position | Ctrl + Shift + > | +| Reset cursor position (Jump to cursor last saving position) | Ctrl + Shift + < | +| Forward one word (Jump forward over one word) | Ctrl + Right | +| Backward one word (Jump backward over one word) | Ctrl + Left | +| Move to end of line | End | +| Move to start of line | Home | +| Move to end of text | Ctrl + End | +| Move to start of text | Ctrl + Home | +| Move to line indentation | Ctrl + M | +| Forward over a pair (Jump forward after the right parenthesis) | Alt + P | +| Backward over a pair (Jump backward before the left parenthesis) | Alt + N | + +### Change Cases + +It helps you change the case of selected text. You can change it to lowercase, uppercase, or capitalize the initial. + +1. Select the text. +2. Right-click and select **Change Case**. +3. Choose **Upper Case**, **Lower Case**, or **Capitalize**. The changes will take effect immediately. + +You can also use **Alt** + **U/L/C** to quickly switch the cases. + +![togglecase](fig/togglecase.png) + +### Highlight Texts +Text Editor supports highlighting different kinds of texts. + +Click the triangle symbol at the far right corner of the status bar at the bottom, and select the type of text you want to highlight. The corresponding contents in the text will be highlighted automatically. + +![highlight](fig/highlight.png) + +### Delete Texts + +In addition to deleting characters one by one, you can quickly delete characters by using the following shortcuts: + +| Function | Shortcuts | +| --------------- | ------------ | +| Delete to end of line | Ctrl + K | +| Delete current line | Ctrl + Shift + K | +| Delete one word backward | Alt + Shift + N | +| Delete one word forward | Alt + Shift + M | + +### Undo + +If you make an incorrect operation, press **Ctrl + Z** to undo it, or right-click and select **Undo**. + +### Find Texts + +1. Click ![menu](../common/icon_menu.svg) > **Find**, or press **Ctrl + F** to open the **Find** box in the bottom of the Text Editor interface. +2. Input the text you want to find. +3. Click **Previous**/**Next** to find each match, or press the **Enter** key to find the next match. +4. Press the **Esc** key or click the close icon to close the dialog box. + +> ![tips](../common/tips.svg)Tips: Select the text and conduct search. The text selected will be automatically displayed in the **Find** box. + +### Replace Texts +1. Click ![menu](../common/icon_menu.svg) > **Replace**, or press **Ctrl + H** to open the **Replace** box in the bottom of the Text Editor interface. +2. Input the text to be replaced and the new text. +3. Click **Replace** to replace the matches one by one, and click **Replace Rest** and **Replace All** to replace the rest or all the matches at once. Click **Skip** to skip the current matching text. +4. Press **Esc** or click the close icon to close the dialog box. + +### Go to Line +Use Go to Line to jump to the specific line directly. + +Right-click and select **Go to Line**; or press **Ctrl + G**, and then input the line number to go to that line. + +### Edit Line + +Use the shortcuts below to edit lines easily: + +| Function | Shortcuts | +| ------------ | ------------ | +| New line above (Insert one line above) | Ctrl + Enter | +| New line below (Insert one line below) | Ctrl + Shift + Enter | +| Duplicate line | Ctrl + Shift + D | +| Swap line up (Swap the current line with above line) | Ctrl + Shift + Up | +| Swap line down (Swap the current line with below line) | Ctrl + Shift + Down | +| Scroll up one line | Super + Shift + Up | +| Scroll down one line | Super + Shift + Down | +| Mark | Alt + H | +| Unmark | Alt + Shift + H | +| Copy line | Super + C | +| Cut line | Super + X | +| Merge lines | Ctrl + J | + +### Enable/Disable Read-only Mode + +1. Open the document with Text Editor, right-click on the Text Editor interface, and select **Turn on Read-Only mode**. +1. Right-click on the Text Editor interface, and select **Turn off Read-Only mode** under the read-only mode. + +![readonly](fig/read_only.png) + +![read-only](fig/read_only_02.png) + +### Text to Speech + +1. Select a paragraph of texts. Right-click it and select **Text to Speech**. The texts selected will be broadcast. +1. During playback, you can stop the **Text to Speech** by clicking the close button on the reading control. + +> ![notes](../common/notes.svg) Notes: The **Text to Speech** option in the right-click menu is grayed out and cannot be activated when no text is selected. + +![read-only](fig/reading.png) + +### Speech to Text + +1. In the text editor area, right-click and select **Speech to Text**. Input speech through the microphone to insert transcribed text at the cursor position. +2. During dictation, you can stop **Speech to Text** by clicking the close button on the dictation control. + +![read-only](fig/listen.png) + +### Use Column Mode + +Press and hold the **Alt** key on the keyboard, drag the mouse to select multiple lines, and edit the identical contents in multiple lines of codes efficiently by using the column mode function. + +![mode](fig/column_mode.png) + +### Color Mark + +Select the text to be marked in Text Editor, right-click to select **Color Mark**, and select the corresponding options in the drop-down list as needed. + +![color](fig/colortag.png) +              + +- Select **Mark** to mark a certain line or a paragraph of texts. You can choose from 8 colors displayed through icons. + - Place the cursor at any line and you can mark the current line. + - Select a paragraph of texts and you can mark the selected texts. +- Select **Mark All** to mark all the contents in Text Editor, or mark all the matching contents of selected texts in Text Editor. You can choose from 8 colors displayed through icons. + - Place the cursor at any line and you can mark all contents. + - Select any content and you can mark the same content in the whole document. +- Select **Clear Last Mark** to cancel the last mark operation. +- Select **Clear All Marks** to cancel all the current marks. + +### Manage Bookmarks + +Check **Show bookmarks icon** in **Settings** and you can add a bookmark for any current line on the Text Editor interface. The icon ![icon](../common/bookmark_normal_light.svg) shows up when you move the cursor to any line in the left column, and the icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) will appear after a bookmark is successfully added. + +- Add bookmarks + + Click ![icon](../common/bookmark_normal_light.svg) to add a bookmark for the line. + + Right-click ![icon](../common/bookmark_normal_light.svg) and select **Add bookmark** to add a bookmark for the line. + + Place the cursor on any line, and press **Ctrl + F2** to add a bookmark for the line. + +- Delete bookmarks + + Click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) to delete the bookmark of the line directly. + + Right-click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) , and select **Remove Bookmark** to delete the bookmark in the line. + + Right-click a bookmark, and select **Remove All Bookmarks** to delete all the bookmarks in the text. + >![Notes](../common/notes.svg) Notes: The bookmark icon appears only when cursor is hovered over to the left of the line number in the left column; when it's moved beyond the left bookmark column, the bookmark icon will disappear. The bookmark icon will always be displayed after being added. + +### Manage Comments + +You can add comments to any text with a code type suffix, such as cpp and java, among others. + +- Add comments + - Select the text needed, and right-click to select **Add Comment**. + - Select the text needed, and press **Alt + A** to add comments. + +- Cancel comments + - Select the text with comments, and right-click to select **Remove Comment**. + - Select the text with comments, and press **Alt + Z** to cancel comments. + +> ![notes](../common/notes.svg) Notes: This supports comments in different languages. Please refer to actual conditions for detailed information. For example, comment symbol for C, C# and Java is //, and comment symbol for Python is #. + +## Main Menu + +On the main menu, you can Create New Windows, Create New Files, [Find Texts](#Find Texts), [Replace Texts](#Replace Texts), [Save Files](#Save Files), switch window themes, view help manual, and get more information about Text Editor. + +### Settings + +You can set the basic information, shortcuts, and advanced information in settings. + +#### Basic Settings + +Click ![icon_menu](../common/icon_menu.svg)> **Settings** and you can perform the following in the **Basic** option: + +- Select the Font and Font Size. +- Check or uncheck **Word wrap**. +- Check **Code folding flag** and ![next](../common/next.svg) or ![next](../common/next_down.svg) are displayed in the edit area. Right-click and select **Fold/Unfold Current Level** or **Fold/Unfold All** to perform the corresponding operations. +- Check **Show line numbers** to display the line number in the edit area. +- Check **Highlight current line** to highlight the current line. +- Check **Show bookmarks icon** to display the bookmarks in the text. +- Check **Show whitespaces and tabs** to display all the white spaces and tabs. You can also input or delete white spaces and tabs manually. + +> ![tips](../common/tips.svg) Tips: You can also use **Ctrl + “+”/ “-”** to adjust the font size, and press **Ctrl + 0** to restore to default font size. + +#### Shortcuts Settings +1. Click ![icon_menu](../common/icon_menu.svg)> **Settings** to view the current shortcut in the **Shortcuts** option. +2. Select a keymap in **Shortcuts** and view the shortcuts. +3. You can click and customize new shortcuts. + +> ![notes](../common/notes.svg) Notes: You can choose a proper keymap to fit your habits, including standard keymap, Emacs keymap, or customize it as you like. + +#### Advanced Settings + +1. Click ![icon_menu](../common/icon_menu.svg)> **Settings**. +2. In the **Advanced** option, you can set: + - Window size: Normal, Maximum, or Fullscreen; + - Tab width: The width of a tab character. + +### Theme + +The window theme provides three theme types, namely Light Theme, Dark Theme, and System Theme. + +1. On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg). +2. Click **Theme** to select one theme. + +### Help + +1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). +2. Select **Help** to view the manual of Text Editor. + +### About + +1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). +2. Select **About** to view the version and introduction of Text Editor. + +### Exit + +1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). +2. Click **Exit** to exit Text Editor. \ No newline at end of file diff --git a/src/assets/loongarch64/editor/en_US/fig/colortag.png b/src/assets/loongarch64/editor/en_US/fig/colortag.png new file mode 100644 index 000000000..40dc4ed25 Binary files /dev/null and b/src/assets/loongarch64/editor/en_US/fig/colortag.png differ diff --git a/src/assets/loongarch64/editor/en_US/fig/column_mode.png b/src/assets/loongarch64/editor/en_US/fig/column_mode.png new file mode 100644 index 000000000..13571c29d Binary files /dev/null and b/src/assets/loongarch64/editor/en_US/fig/column_mode.png differ diff --git a/src/assets/loongarch64/editor/en_US/fig/highlight.png b/src/assets/loongarch64/editor/en_US/fig/highlight.png new file mode 100644 index 000000000..e61661721 Binary files /dev/null and b/src/assets/loongarch64/editor/en_US/fig/highlight.png differ diff --git a/src/assets/loongarch64/editor/en_US/fig/hotkey.png b/src/assets/loongarch64/editor/en_US/fig/hotkey.png new file mode 100644 index 000000000..d046a1d3d Binary files /dev/null and b/src/assets/loongarch64/editor/en_US/fig/hotkey.png differ diff --git a/src/assets/loongarch64/editor/en_US/fig/listen.png b/src/assets/loongarch64/editor/en_US/fig/listen.png new file mode 100644 index 000000000..52f1a2914 Binary files /dev/null and b/src/assets/loongarch64/editor/en_US/fig/listen.png differ diff --git a/src/assets/loongarch64/editor/en_US/fig/overview.png b/src/assets/loongarch64/editor/en_US/fig/overview.png new file mode 100644 index 000000000..803054996 Binary files /dev/null and b/src/assets/loongarch64/editor/en_US/fig/overview.png differ diff --git a/src/assets/deepin-editor/editor/en_US/fig/preview.png b/src/assets/loongarch64/editor/en_US/fig/printer.png similarity index 100% rename from src/assets/deepin-editor/editor/en_US/fig/preview.png rename to src/assets/loongarch64/editor/en_US/fig/printer.png diff --git a/src/assets/loongarch64/editor/en_US/fig/printer_setting.png b/src/assets/loongarch64/editor/en_US/fig/printer_setting.png new file mode 100644 index 000000000..807f80c8f Binary files /dev/null and b/src/assets/loongarch64/editor/en_US/fig/printer_setting.png differ diff --git a/src/assets/loongarch64/editor/en_US/fig/read_only.png b/src/assets/loongarch64/editor/en_US/fig/read_only.png new file mode 100644 index 000000000..4bc561aa0 Binary files /dev/null and b/src/assets/loongarch64/editor/en_US/fig/read_only.png differ diff --git a/src/assets/loongarch64/editor/en_US/fig/read_only_02.png b/src/assets/loongarch64/editor/en_US/fig/read_only_02.png new file mode 100644 index 000000000..23a9e53a5 Binary files /dev/null and b/src/assets/loongarch64/editor/en_US/fig/read_only_02.png differ diff --git a/src/assets/loongarch64/editor/en_US/fig/reading.png b/src/assets/loongarch64/editor/en_US/fig/reading.png new file mode 100644 index 000000000..7a78ef9e7 Binary files /dev/null and b/src/assets/loongarch64/editor/en_US/fig/reading.png differ diff --git a/src/assets/loongarch64/editor/en_US/fig/togglecase.png b/src/assets/loongarch64/editor/en_US/fig/togglecase.png new file mode 100644 index 000000000..6c9fb8766 Binary files /dev/null and b/src/assets/loongarch64/editor/en_US/fig/togglecase.png differ diff --git a/src/assets/loongarch64/editor/en_US/p_editor.md b/src/assets/loongarch64/editor/en_US/p_editor.md new file mode 100644 index 000000000..69d47aab1 --- /dev/null +++ b/src/assets/loongarch64/editor/en_US/p_editor.md @@ -0,0 +1,306 @@ +# Text Editor|deepin-editor| + +## Overview + +Text Editor is a simple text editing tool. You can use it to write a simple text document, or make it a code editing tool with its advanced features which support code syntax highlighting. + +![overview](fig/overview.png) + +## Guide + +### Run Text Editor + +1. Click the Launcher icon ![deepin_launcher](../common/deepin_launcher.svg) in the Dock to enter the Launcher interface. +2. Locate Text Editor ![deepin_editor](../common/deepin_editor.svg) by scrolling the mouse wheel or searching "text editor" in the Launcher interface, and click it to run. +3. In Launcher, right-click Text Editor to: + - Click **Send to desktop** to create a desktop shortcut. + - Click **Send to dock** to fix it in the Dock. + - Click **Add to startup** to add the application to startup, and it will automatically run when the system starts up. + +### Exit Text Editor + +- On the Text Editor interface, click ![close](../common/close_icon.svg) to exit. +- On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg)> **Exit** to exit. +- Right-click ![deepin_editor](../common/deepin_editor.svg) in the Dock, and select **Close All** to exit. + +### View Shortcuts + +On the Text Editor Interface, press **Ctrl** + **Shift** + **?** to view all the shortcuts. You can also check shortcuts in the Settings. Proficiency in shortcuts will greatly improve your efficiency. + +![1|hotkey](fig/hotkey.png) + +## Basic Operations + +### Manage Tabs + +- Create New Tabs/Windows + - Click ![plus_icon](../common/+.svg)or ![icon_menu](../common/icon_menu.svg)> **New tab** on the title bar or press **Ctrl + T** to create a new tab. + - Click ![icon_menu](../common/icon_menu.svg)> **New window** or press **Ctrl + N** to create a new window. + +- Adjust Tabs/Windows + - Drag the tab in the same window to reorder tabs. + - Scroll the mouse wheel on the title of a tab to reorder tabs in the same window. + - Move the tab out of the window to create a new window or move the tab from one window to another. + +- Close Tabs /Windows + + The window will be closed as well when there is only one tab in the window. + + - Press **Ctrl + W** to close the file on the file interface. + - Move the cursor to the file title, and click the ![close](../common/close_icon.svg) icon there or the mouse middle button to close the file. + - Right-click the file title and select **Close tab** or **Close other tabs** or **More options** to close the tabs. + +> ![notes](../common/notes.svg) Notes: If you make changes to the file but does not save it, you will be prompted by Text Editor to save before closing the file. + +### Open Files + +You can open one or multiple text files at one time in the following ways, and the selected file will open in the new tab: + +- Drag the file directly to the Text Editor interface or the Text Editor icon. +- Right-click the file and select **Open with** > **Text Editor**. After selecting Text Editor as the default application for text files in Control Center, you can double-click the file to open it directly. +- On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg)> **Open file**, or use the shortcuts **Ctrl + O** to open the file in File Manager. + +### Save Files + +- Press **Ctrl + S** or click ![icon_menu](../common/icon_menu.svg)> **Save** to save the current document. +- Press **Ctrl + Shift + S** or click ![icon_menu](../common/icon_menu.svg)> **Save as** to save the file as a new one. + +### Print Files + +To print a file in the Text Editor interface, you should connect and set up the printer first. + +1. Click ![icon_menu](../common/icon_menu.svg)> **Print**, or press **Ctrl + P** to open the print preview interface. +2. On the preview interface, preview the document, select a printer, and set the printing page. +3. Click the **Advanced** option on the preview interface to select parameters including paper size and layout. +4. Click **Print** to start printing at the printer selected. + +![pagesetup](fig/printer.png) + +![printer](fig/printer_setting.png) + +## Edit Texts + +### Move Cursor + +In addition to the arrow keys and mouse clicks, you can also use the following shortcuts to move the cursor quickly: + +| Function | Shortcuts | +| --------------- | ------------ | +| Save cursor position | Ctrl + Shift + > | +| Reset cursor position (Jump to cursor last saving position) | Ctrl + Shift + < | +| Forward one word (Jump forward over one word) | Ctrl + Right | +| Backward one word (Jump backward over one word) | Ctrl + Left | +| Move to end of line | End | +| Move to start of line | Home | +| Move to end of text | Ctrl + End | +| Move to start of text | Ctrl + Home | +| Move to line indentation | Ctrl + M | +| Forward over a pair (Jump forward after the right parenthesis) | Alt + P | +| Backward over a pair (Jump backward before the left parenthesis) | Alt + N | + +### Change Cases + +It helps you change the case of selected text. You can change it to lowercase, uppercase, or capitalize the initial. + +1. Select the text. +2. Right-click and select **Change Case**. +3. Choose **Upper Case**, **Lower Case**, or **Capitalize**. The changes will take effect immediately. + +You can also use **Alt** + **U/L/C** to quickly switch the cases. + +![togglecase](fig/togglecase.png) + +### Highlight Texts +Text Editor supports highlighting different kinds of texts. + +Click the triangle symbol at the far right corner of the status bar at the bottom, and select the type of text you want to highlight. The corresponding contents in the text will be highlighted automatically. + +![highlight](fig/highlight.png) + +### Delete Texts + +In addition to deleting characters one by one, you can quickly delete characters by using the following shortcuts: + +| Function | Shortcuts | +| --------------- | ------------ | +| Delete to end of line | Ctrl + K | +| Delete current line | Ctrl + Shift + K | +| Delete one word backward | Alt + Shift + N | +| Delete one word forward | Alt + Shift + M | + +### Undo + +If you make an incorrect operation, press **Ctrl + Z** to undo it, or right-click and select **Undo**. + +### Find Texts + +1. Click ![menu](../common/icon_menu.svg) > **Find**, or press **Ctrl + F** to open the **Find** box in the bottom of the Text Editor interface. +2. Input the text you want to find. +3. Click **Previous**/**Next** to find each match, or press the **Enter** key to find the next match. +4. Press the **Esc** key or click the close icon to close the dialog box. + +> ![tips](../common/tips.svg)Tips: Select the text and conduct search. The text selected will be automatically displayed in the **Find** box. + +### Replace Texts +1. Click ![menu](../common/icon_menu.svg) > **Replace**, or press **Ctrl + H** to open the **Replace** box in the bottom of the Text Editor interface. +2. Input the text to be replaced and the new text. +3. Click **Replace** to replace the matches one by one, and click **Replace Rest** and **Replace All** to replace the rest or all the matches at once. Click **Skip** to skip the current matching text. +4. Press **Esc** or click the close icon to close the dialog box. + +### Go to Line +Use Go to Line to jump to the specific line directly. + +Right-click and select **Go to Line**; or press **Ctrl + G**, and then input the line number to go to that line. + +### Edit Line + +Use the shortcuts below to edit lines easily: + +| Function | Shortcuts | +| ------------ | ------------ | +| New line above (Insert one line above) | Ctrl + Enter | +| New line below (Insert one line below) | Ctrl + Shift + Enter | +| Duplicate line | Ctrl + Shift + D | +| Swap line up (Swap the current line with above line) | Ctrl + Shift + Up | +| Swap line down (Swap the current line with below line) | Ctrl + Shift + Down | +| Scroll up one line | Super + Shift + Up | +| Scroll down one line | Super + Shift + Down | +| Mark | Alt + H | +| Unmark | Alt + Shift + H | +| Copy line | Super + C | +| Cut line | Super + X | +| Merge lines | Ctrl + J | + +### Enable/Disable Read-only Mode + +1. Open the document with Text Editor, right-click on the Text Editor interface, and select **Turn on Read-Only mode**. +1. Right-click on the Text Editor interface, and select **Turn off Read-Only mode** under the read-only mode. + +![readonly](fig/read_only.png) + +![read-only](fig/read_only_02.png) + +### Text to Speech + +1. Select a paragraph of texts. Right-click it and select **Text to Speech**. The texts selected will be broadcast. +1. During playback, you can stop the **Text to Speech** by clicking the close button on the reading control. + +> ![notes](../common/notes.svg) Notes: The **Text to Speech** option in the right-click menu is grayed out and cannot be activated when no text is selected. + +![read-only](fig/reading.png) + +### Speech to Text + +1. In the text editor area, right-click and select **Speech to Text**. Input speech through the microphone to insert transcribed text at the cursor position. +2. During dictation, you can stop **Speech to Text** by clicking the close button on the dictation control. + +![read-only](fig/listen.png) + +### Use Column Mode + +Press and hold the **Alt** key on the keyboard, drag the mouse to select multiple lines, and edit the identical contents in multiple lines of codes efficiently by using the column mode function. + +![mode](fig/column_mode.png) + +### Color Mark + +Select the text to be marked in Text Editor, right-click to select **Color Mark**, and select the corresponding options in the drop-down list as needed. + +![color](fig/colortag.png) +              + +- Select **Mark** to mark a certain line or a paragraph of texts. You can choose from 8 colors displayed through icons. + - Place the cursor at any line and you can mark the current line. + - Select a paragraph of texts and you can mark the selected texts. +- Select **Mark All** to mark all the contents in Text Editor, or mark all the matching contents of selected texts in Text Editor. You can choose from 8 colors displayed through icons. + - Place the cursor at any line and you can mark all contents. + - Select any content and you can mark the same content in the whole document. +- Select **Clear Last Mark** to cancel the last mark operation. +- Select **Clear All Marks** to cancel all the current marks. + +### Manage Bookmarks + +Check **Show bookmarks icon** in **Settings** and you can add a bookmark for any current line on the Text Editor interface. The icon ![icon](../common/bookmark_normal_light.svg) shows up when you move the cursor to any line in the left column, and the icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) will appear after a bookmark is successfully added. + +- Add bookmarks + + Click ![icon](../common/bookmark_normal_light.svg) to add a bookmark for the line. + + Right-click ![icon](../common/bookmark_normal_light.svg) and select **Add bookmark** to add a bookmark for the line. + + Place the cursor on any line, and press **Ctrl + F2** to add a bookmark for the line. + +- Delete bookmarks + + Click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) to delete the bookmark of the line directly. + + Right-click the colored bookmark icon ![bookmarkbig](../common/bookmarkbig_checked_light.svg) , and select **Remove Bookmark** to delete the bookmark in the line. + + Right-click a bookmark, and select **Remove All Bookmarks** to delete all the bookmarks in the text. + >![Notes](../common/notes.svg) Notes: The bookmark icon appears only when cursor is hovered over to the left of the line number in the left column; when it's moved beyond the left bookmark column, the bookmark icon will disappear. The bookmark icon will always be displayed after being added. + +### Manage Comments + +You can add comments to any text with a code type suffix, such as cpp and java, among others. + +- Add comments + - Select the text needed, and right-click to select **Add Comment**. + - Select the text needed, and press **Alt + A** to add comments. + +- Cancel comments + - Select the text with comments, and right-click to select **Remove Comment**. + - Select the text with comments, and press **Alt + Z** to cancel comments. + +> ![notes](../common/notes.svg) Notes: This supports comments in different languages. Please refer to actual conditions for detailed information. For example, comment symbol for C, C# and Java is //, and comment symbol for Python is #. + +## Main Menu + +On the main menu, you can Create New Windows, Create New Files, [Find Texts](#Find Texts), [Replace Texts](#Replace Texts), [Save Files](#Save Files), switch window themes, view help manual, and get more information about Text Editor. + +### Settings + +You can set the basic information, shortcuts, and advanced information in settings. + +#### Basic Settings + +Click ![icon_menu](../common/icon_menu.svg)> **Settings** and you can perform the following in the **Basic** option: + +- Select the Font and Font Size. +- Check or uncheck **Word wrap**. +- Check **Code folding flag** and ![next](../common/next.svg) or ![next](../common/next_down.svg) are displayed in the edit area. Right-click and select **Fold/Unfold Current Level** or **Fold/Unfold All** to perform the corresponding operations. +- Check **Show line numbers** to display the line number in the edit area. +- Check **Highlight current line** to highlight the current line. +- Check **Show bookmarks icon** to display the bookmarks in the text. +- Check **Show whitespaces and tabs** to display all the white spaces and tabs. You can also input or delete white spaces and tabs manually. + +> ![tips](../common/tips.svg) Tips: You can also use **Ctrl + “+”/ “-”** to adjust the font size, and press **Ctrl + 0** to restore to default font size. + +#### Shortcuts Settings +1. Click ![icon_menu](../common/icon_menu.svg)> **Settings** to view the current shortcut in the **Shortcuts** option. +2. Select a keymap in **Shortcuts** and view the shortcuts. +3. You can click and customize new shortcuts. + +> ![notes](../common/notes.svg) Notes: You can choose a proper keymap to fit your habits, including standard keymap, Emacs keymap, or customize it as you like. + +#### Advanced Settings + +1. Click ![icon_menu](../common/icon_menu.svg)> **Settings**. +2. In the **Advanced** option, you can set: + - Window size: Normal, Maximum, or Fullscreen; + - Tab width: The width of a tab character. + +### Theme + +The window theme provides three theme types, namely Light Theme, Dark Theme, and System Theme. + +1. On the Text Editor interface, click ![icon_menu](../common/icon_menu.svg). +2. Click **Theme** to select one theme. + +### Help + +1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). +2. Select **Help** to view the manual of Text Editor. + +### About + +1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). +2. Select **About** to view the version and introduction of Text Editor. + +### Exit + +1. On the Text Editor interface, click ![menu](../common/icon_menu.svg). +2. Click **Exit** to exit Text Editor. \ No newline at end of file diff --git a/src/assets/loongarch64/editor/zh_CN/editor.md b/src/assets/loongarch64/editor/zh_CN/editor.md new file mode 100644 index 000000000..dc54d4804 --- /dev/null +++ b/src/assets/loongarch64/editor/zh_CN/editor.md @@ -0,0 +1,329 @@ +# 文本编辑器|deepin-editor| + +## 概述 + +文本编辑器是一个简单的文本编辑工具。您可以用它书写简单的文本文档,也可以使用它的高级特性,让它成为一个代码编辑工具,支持代码语法高亮。 + +![overview](fig/overview.png) + +## 使用入门 + +### 运行文本编辑器 + +1. 单击任务栏上的启动器图标 ![deepin_launcher](../common/deepin_launcher.svg),进入启动器界面。 +2. 上下滚动鼠标滚轮浏览或通过搜索,找到文本编辑器图标 ![deepin_editor](../common/deepin_editor.svg),单击运行。 +3. 右键单击![deepin_editor](../common/deepin_editor.svg),您可以: + + - 单击 **发送到桌面**,在桌面创建快捷方式。 + - 单击 **发送到任务栏**,将应用程序固定到任务栏。 + - 单击 **开机自动启动**,将应用程序添加到开机启动项,在电脑开机时自动运行该应用。 + +### 退出文本编辑器 + +- 在文本编辑器界面,单击 ![close_icon](../common/close_icon.svg),退出文本编辑器。 +- 在文本编辑器界面,单击主菜单 ![icon_menu](../common/icon_menu.svg) > **退出** ,退出文本编辑器。 +- 在任务栏右键单击 ![deepin_editor](../common/deepin_editor.svg),选择 **关闭所有** ,退出文本编辑器。 + + +### 查看快捷键 + +在文本编辑器界面,使用快捷键 **Ctrl + Shift + ?** 打开快捷键预览界面,您也可以在设置界面查看快捷键。熟练地使用快捷键,将大大提升您的操作效率。 + +![1|hotkey](fig/hotkey.png) + +## 基本操作 + +### 管理标签页 + +- 新建标签页/窗口 + + - 单击标签页上的按钮 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新标签页** 或使用快捷键 **Ctrl + T** 创建一个新的标签页。 + - 单击![icon_menu](../common/icon_menu.svg) > **新窗口** 或使用快捷键 **Ctrl + N** 创建一个新的窗口。 + +- 调整标签页/窗口 + + - 拖拽同一窗口内的标签页重新排序。 + - 滚动鼠标切换同一窗口内的标签页。 + - 移出标签页创建一个新的窗口,或者从一个窗口移到另外一个窗口中。 + +- 关闭标签页/窗口 + + 当窗口中仅有一个标签页时,关闭标签页的同时也会关闭窗口。 + - 使用快捷键 **Ctrl + W** 关闭当前标签页。 + - 单击标签页上的按钮 ![close_icon](../common/close_icon.svg) 或者单击鼠标中键,关闭当前标签页。 + - 右键单击标签页,选择 **关闭标签页** 、**关闭其他标签页** 或 **更多关闭方式** 来关闭标签页。 + + > ![notes](../common/notes.svg)说明:如果您的文件发生了变化而没有保存,文本编辑器会在关闭前提示您保存更改。 + +### 打开文件 + +您可以采用以下方式打开一个或同时打开多个文本文件,选中的文件将会在新标签页打开: + +- 直接拖动文件到文本编辑器界面或其图标上。 +- 右键单击文件,选择 **打开方式** > **文本编辑器**。选择文本编辑器为默认打开程序后,可直接双击打开。 +- 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg) > **打开文件** 或使用快捷键 **Ctrl + O**,在弹出的窗口中选择文件打开。 + +### 保存文件 +- 单击 ![icon_menu](../common/icon_menu.svg) > **保存** 或使用快捷键 **Ctrl + S**,保存当前文件。 +- 单击 ![icon_menu](../common/icon_menu.svg) > **另存为** 或使用快捷键 **Ctrl + Shift + S**,另存当前文件。 + + +### 打印文件 + +在文本编辑器中使用打印,需要提前连接并配置好打印机。 + +1. 单击 ![icon_menu](../common/icon_menu.svg) > **打印** 或使用快捷键 **Ctrl + P** 打开打印预览。 +2. 在打印预览界面,您可以预览文件,选择打印机并设置打印页面。 +3. 在打印预览界面,单击 **高级设置**,可配置纸张大小、打印方式等相关参数。 +4. 单击 **打印** 即可将文件发送到打印机打印。 + +![pagesetup](fig/printer.png) + +![printer](fig/printer_setting.png) + + + +## 编辑文本 + +### 移动光标 + +除了使用方向键和鼠标点击移动光标,您还可以使用以下快捷键迅速移动光标: + +| 功能 | 快捷键 | +| --------------- | ------------ | +| 保存光标位置 | Ctrl + Shift + > | +| 重置光标位置(跳转到上次光标保存的位置) | Ctrl + Shift + < | +| 右移一个词 (光标向右跳过一个词) | Ctrl + 右方向键 | +| 左移一个词 (光标向左跳过一个词) | Ctrl + 左方向键 | +| 移动到行尾 | End | +| 移动到行头 | Home | +| 移动到文本结尾 | Ctrl + End | +| 移动到文本开头 | Ctrl + Home | +| 移动到行缩进 | Ctrl + M | +| 向右匹配 (光标移动到右括号的后面) | Alt + P | +| 向左匹配(光标移动到左括号的前面) | Alt + N | + +### 切换大小写 + +切换大小写功能可以将选中的文本全部改为大写字母、小写字母或者让首字母大写。 + +1. 选中待更改的文本内容。 +2. 单击右键,选择 **切换大小写**。 +3. 选择 **大写**/**小写**/**首字母大写** 选项,更改会立即生效。 + +您也可以使用快捷键 **Alt + U/ L/ C** 迅速切换大小写。 + +![togglecase](fig/togglecase.png) + +### 高亮文本 + +文本编辑器支持高亮不同类型的文本。 +单击底部状态栏最右侧的三角符号, 选择某种文本类型。若文本中有相应内容则会自动高亮。 + +![highlight](fig/highlight.png) + +### 删除文本 +除了向左或向右逐个删除字符外,您还可以使用以下快捷键迅速删除字符: + +| 功能 | 快捷键 | +| --------------- | ------------ | +| 删除到行尾 | Ctrl + K | +| 删除当前行 | Ctrl + Shift + K | +| 向左删除一个词 | Alt + Shift + N | +| 向右删除一个词 | Alt + Shift + M | + +### 撤销操作 + +如果在编辑文本时发生误操作,可以使用快捷键 **Ctrl + Z** 撤销操作,或者在右键菜单中选择 **撤销**。 + +### 查找文本 + +1. 单击 ![menu](../common/icon_menu.svg) > **查找** 或使用快捷键 **Ctrl + F**,打开查找窗口。 +2. 在查找窗口中,输入要搜索的文本。 +3. 单击 **下一个**、**上一个** 逐个查找,或使用 **Enter** 键查找下一个匹配项。 +4. 按下 **Esc** 键或单击关闭按钮,关闭查找窗口。 + +> ![tips](../common/tips.svg)窍门:选中一段文本后再进行查找,则这段文本会自动出现在查找窗口中。 + +### 替换文本 +1. 单击 ![menu](../common/icon_menu.svg) > **替换** 或使用快捷键 **Ctrl + H** ,打开替换窗口。 +2. 在替换窗口中,输入要替换的文本以及新文本。 +3. 单击 **替换** 逐个替换;单击 **剩余替换**、**全部替换** 一次性替换剩余的或所有的匹配文本;单击 **跳过** 不替换当前匹配的文本。 +4. 按下 **Esc** 键或单击关闭按钮,关闭搜索窗口。 + +### 跳到行 +使用该功能可以迅速跳转到任一行。 +在右键菜单中选择 **跳到行** 或者使用快捷键 **Ctrl + G** ,输入行号即可跳转到相应行。 + +### 编辑行 + +您可以使用以下快捷键迅速编辑行: + +| 功能 | 快捷键 | +| ------------ | ------------ | +| 向上插入一行(在上方插入一行) | Ctrl + Enter | +| 向下插入一行(在下方插入一行) | Ctrl + Shift + Enter | +| 复制并粘贴当前行 | Ctrl + Shift + D | +| 上移一行(与上一行交换位置) | Ctrl + Shift + Up | +| 下移一行(与下一行交换位置) | Ctrl + Shift + Down | +| 向上滚动一行 | Super + Shift + Up | +| 向下滚动一行 | Super + Shift + Down | +| 设置标记 | Alt + H | +| 取消标记 | Alt + Shift + H | +| 复制行 | Super + C | +| 剪切行 | Super + X | +| 合并行 | Ctrl + J | + +### 开启/关闭只读模式 + +1. 使用文本编辑器打开文档,单击右键,选择 **开启只读模式**。 +2. 在只读模式下,单击右键,选择 **关闭只读模式**。 + +![read-only](fig/read_only.png) + +![read-only](fig/read_only_02.png) + +### 语音朗读 + +1. 选择一段文字后,单击右键选择 **语音朗读**,将会语音播报选中的文字。 + +2. 在朗读过程中,通过单击朗读控件的关闭按钮可结束语音朗读。 + + > ![notes](../common/notes.svg)说明:当未选择文字时,右键菜单中 **语音朗读** 不可激活,处于置灰状态。 + +![read-only](fig/reading.png) + +### **语音听写** + +1. 在文本编辑区域内,单击鼠标右键选择 **语音听写**,通过麦克风输入语音,转译文字将被插入到光标所在位置。 + +2. 在听写模式下,通过单击听写控件的关闭按钮可停止语音听写。 + +![read-only](fig/listen.png) + +### 列编辑 + +在文本编辑器界面,按住 **Alt** 键不放,鼠标左键单击多列启动列编辑模式,为多行代码同时编辑相同的内容,提高工作效率。 + +![mode](fig/column_mode.png) + + + +### 颜色标记 + +在文本编辑器界面,单击鼠标右键选择 **颜色标记**,在其下拉列表中进行选择。 + +![color](fig/colortag.png) + + - **添加标记**:对某一行或某一段文本内容添加颜色标记;有8种颜色按钮可供选择。 + + 将光标定在某一行,标记当前所在的行。 + + 选中一段文本内容后,标记选中的文本内容。 + - **标记所有**:将文本内容全部标记或对已选中的文本内容,在全文中标记匹配项;有8种颜色按钮可供选择。 + + 将光标定在任意一行,将文本内容全部标记。 + + 选中一段文本内容,在全文中标记匹配项。 + + - **清除上次标记**:清除上次标记操作。 + - **清除所有标记**:清除当前所有标记。 + +### 书签管理 + +在文本编辑器设置界面,勾选 **显示书签图标** 后,您可以为任意一行的文本内容添加书签。将鼠标指针移至左侧栏任意行号前面会显示图标 ![icon](../common/bookmark_normal_light.svg),添加成功后该行的书签图标会变为蓝色填充的图标 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 + +- 添加书签 + + + 鼠标左键单击 ![icon](../common/bookmark_normal_light.svg),为该行添加书签。 + + 鼠标右键单击 ![icon](../common/bookmark_normal_light.svg),选择 **添加书签**,为该行添加一个书签。 + + 将光标定在文本中任意一行,使用快捷键 **Ctrl + F2** 为该行添加一个书签。 + +- 删除书签 + + + 鼠标左键单击已填充颜色的书签图标,直接删除该行书签。 + + 鼠标右键单击已填充颜色的书签图标,选择 **清除书签**,删除该行书签。 + + 鼠标右键单击书签图标,选择 **清除所有书签**,删除该文本的全部书签。 + + >![icon](../common/notes.svg)说明:鼠标移到左侧行号前面才会显示书签图标,移出书签区域,书签图标消失。添加书签后,该图标一直显示。 + + + +### 注释管理 + +在文本编辑器界面,您可以对扩展名为.cpp 、.java 、.py等代码类型的文件进行添加注释的操作。 + +- 添加注释 + + 选中一段文本内容,单击右键并选择 **添加注释**。 + + 选中一段文本内容,使用快捷键 **Alt + A** 添加注释。 + +- 取消注释 + + 选中一段已添加注释的文本内容,单击右键并选择 **取消注释**。 + + 选中一段已添加注释的文本内容,使用快捷键 **Alt + Z** 取消注释。 + + >![notes](../common/notes.svg)说明:支持不同代码语言的注释,具体以实际为主。例如C,C#,Java注释符号为 //,Python 注释符号为 #。 + + + +## 主菜单 + +在主菜单中,您可以新建窗口、新建标签页、[查找文本](#查找文本)、[替换文本](#替换文本)、保存文件、切换窗口主题、查看帮助手册,了解文本编辑器的更多信息。 + +### 设置 + +您可以对基础信息、快捷键和高级信息进行设置。 + +#### 基础设置 + +1. 单击![icon_menu](../common/icon_menu.svg)> **设置**。 +2. 在基础设置选项,您可以选择: + - 设置字体样式和字号大小。 + - 勾选 **自动换行**,在编辑区自动换行。 + - 勾选 **代码折叠标志**,在左侧栏显示按钮![next](../common/next.svg)或者![next](../common/next_down.svg),右键单击按钮选择折叠/展开当前层次或所有层次。 + - 勾选 **显示行号**,在左侧栏显示行号。 + - 勾选 **当前行高亮**,光标所在的行高亮显示。 + - 勾选 **显示书签图标**,在左侧栏显示书签图标。 + - 勾选 **显示空白制符/制表符**,显示文本中的空白字符和制表符,您也可以手动输入或删除空白字符和制表符。 + + > ![tips](../common/tips.svg)窍门:在文本编辑器中,使用 **Ctrl + “+”/ “-”** 调节字号,使用 **Ctrl + 0** 恢复默认字号。 + + + +#### 快捷键设置 + +1. 单击 ![icon_menu](../common/icon_menu.svg) > **设置**,在 **快捷键** 选项查看当前快捷键。 +2. 选择一种快捷键映射。 +3. 您可以单击快捷键编辑区域,自定义快捷键。 + + > ![notes](../common/notes.svg)说明: 快捷键映射允许您选择某一种键盘快捷键。您可以使用标准快捷键,Emacs快捷键,或自定义快捷键,以符合您的使用习惯。 + + +#### 高级设置 + +1. 单击 ![icon_menu](../common/icon_menu.svg) >**设置**。 +2. 在 **高级设置** 选项,您可以设置: + - 窗口状态:正常窗口,最大化或全屏。 + - Tab字符宽度:Tab缩进所占用的空间大小。 + + +### 主题 + +窗口主题包含浅色主题、深色主题和系统主题。 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **主题**,选择一个主题颜色。 + +### 帮助 + +查看帮助手册,进一步了解和使用文本编辑器。 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **帮助**。 +3. 查看文本编辑器的帮助手册。 + +### 关于 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **关于**。 +3. 查看文本编辑器的版本和介绍。 + +### 退出 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **退出**。 diff --git a/src/assets/loongarch64/editor/zh_CN/fig/colortag.png b/src/assets/loongarch64/editor/zh_CN/fig/colortag.png new file mode 100644 index 000000000..88776928c Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/colortag.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/fig/column_mode.png b/src/assets/loongarch64/editor/zh_CN/fig/column_mode.png new file mode 100644 index 000000000..f7aed6b32 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/column_mode.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/fig/highlight.png b/src/assets/loongarch64/editor/zh_CN/fig/highlight.png new file mode 100644 index 000000000..6f15f2608 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/highlight.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/fig/hotkey.png b/src/assets/loongarch64/editor/zh_CN/fig/hotkey.png new file mode 100644 index 000000000..37e87eebe Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/hotkey.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/fig/listen.png b/src/assets/loongarch64/editor/zh_CN/fig/listen.png new file mode 100644 index 000000000..36cc2f2ef Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/listen.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/fig/overview.png b/src/assets/loongarch64/editor/zh_CN/fig/overview.png new file mode 100644 index 000000000..efc554ff1 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/overview.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/fig/printer.png b/src/assets/loongarch64/editor/zh_CN/fig/printer.png new file mode 100644 index 000000000..e2f66f6cd Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/printer.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/fig/printer_setting.png b/src/assets/loongarch64/editor/zh_CN/fig/printer_setting.png new file mode 100644 index 000000000..984eee2f2 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/printer_setting.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/fig/read_only.png b/src/assets/loongarch64/editor/zh_CN/fig/read_only.png new file mode 100644 index 000000000..c58625904 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/read_only.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/fig/read_only_02.png b/src/assets/loongarch64/editor/zh_CN/fig/read_only_02.png new file mode 100644 index 000000000..6ee9315a8 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/read_only_02.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/fig/reading.png b/src/assets/loongarch64/editor/zh_CN/fig/reading.png new file mode 100644 index 000000000..38ffbc8a7 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/reading.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/fig/togglecase.png b/src/assets/loongarch64/editor/zh_CN/fig/togglecase.png new file mode 100644 index 000000000..7de472488 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_CN/fig/togglecase.png differ diff --git a/src/assets/loongarch64/editor/zh_CN/p_editor.md b/src/assets/loongarch64/editor/zh_CN/p_editor.md new file mode 100644 index 000000000..dc54d4804 --- /dev/null +++ b/src/assets/loongarch64/editor/zh_CN/p_editor.md @@ -0,0 +1,329 @@ +# 文本编辑器|deepin-editor| + +## 概述 + +文本编辑器是一个简单的文本编辑工具。您可以用它书写简单的文本文档,也可以使用它的高级特性,让它成为一个代码编辑工具,支持代码语法高亮。 + +![overview](fig/overview.png) + +## 使用入门 + +### 运行文本编辑器 + +1. 单击任务栏上的启动器图标 ![deepin_launcher](../common/deepin_launcher.svg),进入启动器界面。 +2. 上下滚动鼠标滚轮浏览或通过搜索,找到文本编辑器图标 ![deepin_editor](../common/deepin_editor.svg),单击运行。 +3. 右键单击![deepin_editor](../common/deepin_editor.svg),您可以: + + - 单击 **发送到桌面**,在桌面创建快捷方式。 + - 单击 **发送到任务栏**,将应用程序固定到任务栏。 + - 单击 **开机自动启动**,将应用程序添加到开机启动项,在电脑开机时自动运行该应用。 + +### 退出文本编辑器 + +- 在文本编辑器界面,单击 ![close_icon](../common/close_icon.svg),退出文本编辑器。 +- 在文本编辑器界面,单击主菜单 ![icon_menu](../common/icon_menu.svg) > **退出** ,退出文本编辑器。 +- 在任务栏右键单击 ![deepin_editor](../common/deepin_editor.svg),选择 **关闭所有** ,退出文本编辑器。 + + +### 查看快捷键 + +在文本编辑器界面,使用快捷键 **Ctrl + Shift + ?** 打开快捷键预览界面,您也可以在设置界面查看快捷键。熟练地使用快捷键,将大大提升您的操作效率。 + +![1|hotkey](fig/hotkey.png) + +## 基本操作 + +### 管理标签页 + +- 新建标签页/窗口 + + - 单击标签页上的按钮 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新标签页** 或使用快捷键 **Ctrl + T** 创建一个新的标签页。 + - 单击![icon_menu](../common/icon_menu.svg) > **新窗口** 或使用快捷键 **Ctrl + N** 创建一个新的窗口。 + +- 调整标签页/窗口 + + - 拖拽同一窗口内的标签页重新排序。 + - 滚动鼠标切换同一窗口内的标签页。 + - 移出标签页创建一个新的窗口,或者从一个窗口移到另外一个窗口中。 + +- 关闭标签页/窗口 + + 当窗口中仅有一个标签页时,关闭标签页的同时也会关闭窗口。 + - 使用快捷键 **Ctrl + W** 关闭当前标签页。 + - 单击标签页上的按钮 ![close_icon](../common/close_icon.svg) 或者单击鼠标中键,关闭当前标签页。 + - 右键单击标签页,选择 **关闭标签页** 、**关闭其他标签页** 或 **更多关闭方式** 来关闭标签页。 + + > ![notes](../common/notes.svg)说明:如果您的文件发生了变化而没有保存,文本编辑器会在关闭前提示您保存更改。 + +### 打开文件 + +您可以采用以下方式打开一个或同时打开多个文本文件,选中的文件将会在新标签页打开: + +- 直接拖动文件到文本编辑器界面或其图标上。 +- 右键单击文件,选择 **打开方式** > **文本编辑器**。选择文本编辑器为默认打开程序后,可直接双击打开。 +- 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg) > **打开文件** 或使用快捷键 **Ctrl + O**,在弹出的窗口中选择文件打开。 + +### 保存文件 +- 单击 ![icon_menu](../common/icon_menu.svg) > **保存** 或使用快捷键 **Ctrl + S**,保存当前文件。 +- 单击 ![icon_menu](../common/icon_menu.svg) > **另存为** 或使用快捷键 **Ctrl + Shift + S**,另存当前文件。 + + +### 打印文件 + +在文本编辑器中使用打印,需要提前连接并配置好打印机。 + +1. 单击 ![icon_menu](../common/icon_menu.svg) > **打印** 或使用快捷键 **Ctrl + P** 打开打印预览。 +2. 在打印预览界面,您可以预览文件,选择打印机并设置打印页面。 +3. 在打印预览界面,单击 **高级设置**,可配置纸张大小、打印方式等相关参数。 +4. 单击 **打印** 即可将文件发送到打印机打印。 + +![pagesetup](fig/printer.png) + +![printer](fig/printer_setting.png) + + + +## 编辑文本 + +### 移动光标 + +除了使用方向键和鼠标点击移动光标,您还可以使用以下快捷键迅速移动光标: + +| 功能 | 快捷键 | +| --------------- | ------------ | +| 保存光标位置 | Ctrl + Shift + > | +| 重置光标位置(跳转到上次光标保存的位置) | Ctrl + Shift + < | +| 右移一个词 (光标向右跳过一个词) | Ctrl + 右方向键 | +| 左移一个词 (光标向左跳过一个词) | Ctrl + 左方向键 | +| 移动到行尾 | End | +| 移动到行头 | Home | +| 移动到文本结尾 | Ctrl + End | +| 移动到文本开头 | Ctrl + Home | +| 移动到行缩进 | Ctrl + M | +| 向右匹配 (光标移动到右括号的后面) | Alt + P | +| 向左匹配(光标移动到左括号的前面) | Alt + N | + +### 切换大小写 + +切换大小写功能可以将选中的文本全部改为大写字母、小写字母或者让首字母大写。 + +1. 选中待更改的文本内容。 +2. 单击右键,选择 **切换大小写**。 +3. 选择 **大写**/**小写**/**首字母大写** 选项,更改会立即生效。 + +您也可以使用快捷键 **Alt + U/ L/ C** 迅速切换大小写。 + +![togglecase](fig/togglecase.png) + +### 高亮文本 + +文本编辑器支持高亮不同类型的文本。 +单击底部状态栏最右侧的三角符号, 选择某种文本类型。若文本中有相应内容则会自动高亮。 + +![highlight](fig/highlight.png) + +### 删除文本 +除了向左或向右逐个删除字符外,您还可以使用以下快捷键迅速删除字符: + +| 功能 | 快捷键 | +| --------------- | ------------ | +| 删除到行尾 | Ctrl + K | +| 删除当前行 | Ctrl + Shift + K | +| 向左删除一个词 | Alt + Shift + N | +| 向右删除一个词 | Alt + Shift + M | + +### 撤销操作 + +如果在编辑文本时发生误操作,可以使用快捷键 **Ctrl + Z** 撤销操作,或者在右键菜单中选择 **撤销**。 + +### 查找文本 + +1. 单击 ![menu](../common/icon_menu.svg) > **查找** 或使用快捷键 **Ctrl + F**,打开查找窗口。 +2. 在查找窗口中,输入要搜索的文本。 +3. 单击 **下一个**、**上一个** 逐个查找,或使用 **Enter** 键查找下一个匹配项。 +4. 按下 **Esc** 键或单击关闭按钮,关闭查找窗口。 + +> ![tips](../common/tips.svg)窍门:选中一段文本后再进行查找,则这段文本会自动出现在查找窗口中。 + +### 替换文本 +1. 单击 ![menu](../common/icon_menu.svg) > **替换** 或使用快捷键 **Ctrl + H** ,打开替换窗口。 +2. 在替换窗口中,输入要替换的文本以及新文本。 +3. 单击 **替换** 逐个替换;单击 **剩余替换**、**全部替换** 一次性替换剩余的或所有的匹配文本;单击 **跳过** 不替换当前匹配的文本。 +4. 按下 **Esc** 键或单击关闭按钮,关闭搜索窗口。 + +### 跳到行 +使用该功能可以迅速跳转到任一行。 +在右键菜单中选择 **跳到行** 或者使用快捷键 **Ctrl + G** ,输入行号即可跳转到相应行。 + +### 编辑行 + +您可以使用以下快捷键迅速编辑行: + +| 功能 | 快捷键 | +| ------------ | ------------ | +| 向上插入一行(在上方插入一行) | Ctrl + Enter | +| 向下插入一行(在下方插入一行) | Ctrl + Shift + Enter | +| 复制并粘贴当前行 | Ctrl + Shift + D | +| 上移一行(与上一行交换位置) | Ctrl + Shift + Up | +| 下移一行(与下一行交换位置) | Ctrl + Shift + Down | +| 向上滚动一行 | Super + Shift + Up | +| 向下滚动一行 | Super + Shift + Down | +| 设置标记 | Alt + H | +| 取消标记 | Alt + Shift + H | +| 复制行 | Super + C | +| 剪切行 | Super + X | +| 合并行 | Ctrl + J | + +### 开启/关闭只读模式 + +1. 使用文本编辑器打开文档,单击右键,选择 **开启只读模式**。 +2. 在只读模式下,单击右键,选择 **关闭只读模式**。 + +![read-only](fig/read_only.png) + +![read-only](fig/read_only_02.png) + +### 语音朗读 + +1. 选择一段文字后,单击右键选择 **语音朗读**,将会语音播报选中的文字。 + +2. 在朗读过程中,通过单击朗读控件的关闭按钮可结束语音朗读。 + + > ![notes](../common/notes.svg)说明:当未选择文字时,右键菜单中 **语音朗读** 不可激活,处于置灰状态。 + +![read-only](fig/reading.png) + +### **语音听写** + +1. 在文本编辑区域内,单击鼠标右键选择 **语音听写**,通过麦克风输入语音,转译文字将被插入到光标所在位置。 + +2. 在听写模式下,通过单击听写控件的关闭按钮可停止语音听写。 + +![read-only](fig/listen.png) + +### 列编辑 + +在文本编辑器界面,按住 **Alt** 键不放,鼠标左键单击多列启动列编辑模式,为多行代码同时编辑相同的内容,提高工作效率。 + +![mode](fig/column_mode.png) + + + +### 颜色标记 + +在文本编辑器界面,单击鼠标右键选择 **颜色标记**,在其下拉列表中进行选择。 + +![color](fig/colortag.png) + + - **添加标记**:对某一行或某一段文本内容添加颜色标记;有8种颜色按钮可供选择。 + + 将光标定在某一行,标记当前所在的行。 + + 选中一段文本内容后,标记选中的文本内容。 + - **标记所有**:将文本内容全部标记或对已选中的文本内容,在全文中标记匹配项;有8种颜色按钮可供选择。 + + 将光标定在任意一行,将文本内容全部标记。 + + 选中一段文本内容,在全文中标记匹配项。 + + - **清除上次标记**:清除上次标记操作。 + - **清除所有标记**:清除当前所有标记。 + +### 书签管理 + +在文本编辑器设置界面,勾选 **显示书签图标** 后,您可以为任意一行的文本内容添加书签。将鼠标指针移至左侧栏任意行号前面会显示图标 ![icon](../common/bookmark_normal_light.svg),添加成功后该行的书签图标会变为蓝色填充的图标 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 + +- 添加书签 + + + 鼠标左键单击 ![icon](../common/bookmark_normal_light.svg),为该行添加书签。 + + 鼠标右键单击 ![icon](../common/bookmark_normal_light.svg),选择 **添加书签**,为该行添加一个书签。 + + 将光标定在文本中任意一行,使用快捷键 **Ctrl + F2** 为该行添加一个书签。 + +- 删除书签 + + + 鼠标左键单击已填充颜色的书签图标,直接删除该行书签。 + + 鼠标右键单击已填充颜色的书签图标,选择 **清除书签**,删除该行书签。 + + 鼠标右键单击书签图标,选择 **清除所有书签**,删除该文本的全部书签。 + + >![icon](../common/notes.svg)说明:鼠标移到左侧行号前面才会显示书签图标,移出书签区域,书签图标消失。添加书签后,该图标一直显示。 + + + +### 注释管理 + +在文本编辑器界面,您可以对扩展名为.cpp 、.java 、.py等代码类型的文件进行添加注释的操作。 + +- 添加注释 + + 选中一段文本内容,单击右键并选择 **添加注释**。 + + 选中一段文本内容,使用快捷键 **Alt + A** 添加注释。 + +- 取消注释 + + 选中一段已添加注释的文本内容,单击右键并选择 **取消注释**。 + + 选中一段已添加注释的文本内容,使用快捷键 **Alt + Z** 取消注释。 + + >![notes](../common/notes.svg)说明:支持不同代码语言的注释,具体以实际为主。例如C,C#,Java注释符号为 //,Python 注释符号为 #。 + + + +## 主菜单 + +在主菜单中,您可以新建窗口、新建标签页、[查找文本](#查找文本)、[替换文本](#替换文本)、保存文件、切换窗口主题、查看帮助手册,了解文本编辑器的更多信息。 + +### 设置 + +您可以对基础信息、快捷键和高级信息进行设置。 + +#### 基础设置 + +1. 单击![icon_menu](../common/icon_menu.svg)> **设置**。 +2. 在基础设置选项,您可以选择: + - 设置字体样式和字号大小。 + - 勾选 **自动换行**,在编辑区自动换行。 + - 勾选 **代码折叠标志**,在左侧栏显示按钮![next](../common/next.svg)或者![next](../common/next_down.svg),右键单击按钮选择折叠/展开当前层次或所有层次。 + - 勾选 **显示行号**,在左侧栏显示行号。 + - 勾选 **当前行高亮**,光标所在的行高亮显示。 + - 勾选 **显示书签图标**,在左侧栏显示书签图标。 + - 勾选 **显示空白制符/制表符**,显示文本中的空白字符和制表符,您也可以手动输入或删除空白字符和制表符。 + + > ![tips](../common/tips.svg)窍门:在文本编辑器中,使用 **Ctrl + “+”/ “-”** 调节字号,使用 **Ctrl + 0** 恢复默认字号。 + + + +#### 快捷键设置 + +1. 单击 ![icon_menu](../common/icon_menu.svg) > **设置**,在 **快捷键** 选项查看当前快捷键。 +2. 选择一种快捷键映射。 +3. 您可以单击快捷键编辑区域,自定义快捷键。 + + > ![notes](../common/notes.svg)说明: 快捷键映射允许您选择某一种键盘快捷键。您可以使用标准快捷键,Emacs快捷键,或自定义快捷键,以符合您的使用习惯。 + + +#### 高级设置 + +1. 单击 ![icon_menu](../common/icon_menu.svg) >**设置**。 +2. 在 **高级设置** 选项,您可以设置: + - 窗口状态:正常窗口,最大化或全屏。 + - Tab字符宽度:Tab缩进所占用的空间大小。 + + +### 主题 + +窗口主题包含浅色主题、深色主题和系统主题。 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **主题**,选择一个主题颜色。 + +### 帮助 + +查看帮助手册,进一步了解和使用文本编辑器。 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **帮助**。 +3. 查看文本编辑器的帮助手册。 + +### 关于 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **关于**。 +3. 查看文本编辑器的版本和介绍。 + +### 退出 + +1. 在文本编辑器界面,单击 ![icon_menu](../common/icon_menu.svg)。 +2. 选择 **退出**。 diff --git a/src/assets/loongarch64/editor/zh_HK/editor.md b/src/assets/loongarch64/editor/zh_HK/editor.md new file mode 100644 index 000000000..20e52b360 --- /dev/null +++ b/src/assets/loongarch64/editor/zh_HK/editor.md @@ -0,0 +1,326 @@ +# 文本編輯器|deepin-editor| + +## 概述 + +文本編輯器是一個簡單的文本編輯工具。您可以用它書寫簡單的文本文檔,也可以使用它的高級特性,讓它成為一個代碼編輯工具,支持代碼語法高亮。 + +![overview](fig/overview.png) + +## 使用入門 + +### 運行文本編輯器 + +1. 單擊任務欄上的啟動器圖標 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器界面。 +2. 上下滾動鼠標滾輪瀏覽或通過搜索,找到文本編輯器圖標 ![deepin_editor](../common/deepin_editor.svg),單擊運行。 +3. 右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),您可以: + + - 單擊 **傳送到桌面**,在桌面創建快捷方式。 + - 單擊 **傳送到任務欄**,將應用程序固定到任務欄。 + - 單擊 **加至開機啟動**,將應用程序添加到開機啟動項,在電腦開機時自動運行該應用。 + +### 關閉文本編輯器 + +- 在文本編輯器界面,單擊 ![close_icon](../common/close_icon.svg),關閉文本編輯器。 +- 在文本編輯器界面,單擊主菜單 ![icon_menu](../common/icon_menu.svg) > **退出** ,關閉文本編輯器。 +- 在任務欄右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),選擇 **關閉所有** ,關閉文本編輯器。 + + +### 查看快捷鍵 + +在文本編輯器界面,使用快捷鍵 **Ctrl + Shift + ?** 打開快捷鍵預覽界面,您也可以在設置界面查看快捷鍵。熟練地使用快捷鍵,將大大提升您的操作效率。 + +![1|hotkey](fig/hotkey.png) + +## 基本操作 + +### 管理標籤頁 + +- 新建標籤頁/窗口 + + - 單擊標籤頁上的按鈕 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新標籤頁** 或使用快捷鍵 **Ctrl + T** 創建一個新的標籤頁。 + - 單擊 ![icon_menu](../common/icon_menu.svg) > **新窗口** 或使用快捷鍵 **Ctrl + N** 創建一個新的窗口。 + +- 調整標籤頁/窗口 + + - 拖拽同一窗口內的標籤頁重新排序。 + - 滾動鼠標切換同一窗口內的標籤頁。 + - 移出標籤頁創建一個新的窗口,或者從一個窗口移到另外一個窗口中。 + +- 關閉標籤頁/窗口 + + 當窗口中僅有一個標籤頁時,關閉標籤頁的同時也會關閉窗口。 + - 使用快捷鍵 **Ctrl + W** 關閉當前標籤頁。 + - 單擊標籤頁上的 ![close_icon](../common/close_icon.svg) 按鈕或者單擊鼠標中鍵,關閉當前標籤頁。 + - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 來關閉標籤頁。 + + > ![notes](../common/notes.svg)說明:如果您的文件發生了變化而沒有保存,文本編輯器會在關閉前提示您保存更改。 + + +### 打開文件 + +您可以採用以下方式打開一個或同時打開多個文本文件,選中的文件將會在新標籤頁中打開: + +- 直接拖動文件到文本編輯器界面或其圖標上。 +- 右鍵單擊文件,選擇 **打開方式** > **文本編輯器**。選擇文本編輯器為默認打開程序後,可直接雙擊打開。 +- 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg) > **打開文件** 或使用快捷鍵 **Ctrl + O**,在彈出的窗口中選擇文件打開。 + + +### 保存文件 +- 單擊 ![icon_menu](../common/icon_menu.svg) > **保存** 或使用快捷鍵 **Ctrl + S**,保存當前文件。 +- 單擊 ![icon_menu](../common/icon_menu.svg) > **另存為** 或使用快捷鍵 **Ctrl + Shift + S**,另存當前文件。 + + + +### 打印文件 + +在文本編輯器中使用打印,需要您連接並配置好打印機。 + +1. 單擊 ![icon_menu](../common/icon_menu.svg) > **打印**,也可以使用快捷鍵 **Ctrl + P** 打開打印預覽。 +2. 在打印預覽界面,您可以預覽文件,選擇打印機並設置打印頁面。 +3. 在打印預覽界面,單擊 **高級設置**,可配置紙張大小、打印方式等相關參數。 +4. 單擊 **打印** 即可將文件發送到打印機打印。 + + + +## 編輯文本 + +### 移動光標 + +除了使用方向鍵和鼠標單擊移動光標,您還可以使用以下快捷鍵迅速移動光標: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 保存光標位置 | Ctrl + Shift + > | +| 重置光標位置(跳轉到上次光標保存的位置) | Ctrl + Shift + < | +| 右移一個詞 (光標向右跳過一個詞) | Ctrl + 右方向鍵 | +| 左移一個詞 (光標向左跳過一個詞) | Ctrl + 左方向鍵 | +| 移動到行尾 | End | +| 移動到行頭 | Home | +| 移動到文本結尾 | Ctrl + End | +| 移動到文本開頭 | Ctrl + Home | +| 移動到行縮進 | Ctrl + M | +| 向右匹配 (光標移動到右括號的後面) | Alt + P | +| 向左匹配(光標移動到左括號的前面) | Alt + N | + +### 切換大小寫 + +切換大小寫功能可以將選中的文本全部改為大寫字母、小寫字母或者讓首字母大寫。 + +1. 選中待更改的文本內容。 +2. 單擊右鍵,選擇 **切換大小寫**。 +3. 選擇 **大寫**/**小寫**/**首字母大寫** 選項,更改會立即生效。 + +您也可以使用快捷鍵 **Alt + U/ L/ C** 迅速切換大小寫。 + +![toggle_case](fig/toggle_case.png) + +### 高亮文本 + +文本編輯器支持高亮不同類型的文本。 +單擊底部狀態欄最右側的三角符號, 選擇某種文本類型。若文本中有相應內容則會自動高亮。 + +![highlight](fig/highlight.png) + +### 刪除文本 +除了向左或向右逐個刪除字符外,您還可以使用以下快捷鍵迅速刪除字符: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 刪除到行尾 | Ctrl + K | +| 刪除當前行 | Ctrl + Shift + K | +| 向左刪除一個詞 | Alt + Shift + N | +| 向右刪除一個詞 | Alt + Shift + M | + +### 撤銷操作 + +如果在編輯文本時發生誤操作,可以使用快捷鍵 **Ctrl + Z** 撤銷操作,或者在右鍵菜單中選擇 **撤銷**。 + +### 查找文本 + +1. 單擊 ![menu](../common/icon_menu.svg) > **查找** 或使用快捷鍵 **Ctrl + F** 打開查找窗口。 +2. 在查找窗口中,輸入要搜索的文本。 +3. 單擊 **下一個**、**上一個** 逐個查找,或使用 **Enter** 鍵查找下一個匹配項。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉查找窗口。 + +> ![tips](../common/tips.svg)竅門:選中一段文本後再進行搜索,則這段文本會自動出現在查找窗口中。 + +### 替換文本 +1. 單擊 ![menu](../common/icon_menu.svg) > **替換** 或使用快捷鍵 **Ctrl + H** 打開替換窗口。 +2. 在替換窗口中,輸入要替換的文本以及新文本。 +3. 單擊 **替換** 逐個替換,單擊 **剩餘替換**、**全部替換** 一次性替換剩餘的或所有的匹配文本。單擊 **跳過** 不替換當前匹配的文本。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉搜索窗口。 + +### 跳到行 +使用該功能可以迅速跳轉到任一行。 +在右鍵菜單中選擇 **跳到行** 或者使用快捷鍵 **Ctrl + G** ,輸入行號即可跳轉到相應行。 + +### 編輯行 + +您可以使用以下快捷鍵迅速編輯行: + +| 功能 | 快捷鍵 | +| ------------ | ------------ | +| 向上插入一行(在上方插入一行) | Ctrl + Enter | +| 向下插入一行(在下方插入一行) | Ctrl + Shift + Enter | +| 複製並黏貼當前行 | Ctrl + Shift + D | +| 上移一行(與上一行交換位置) | Ctrl + Shift + Up | +| 下移一行(與下一行交換位置) | Ctrl + Shift + Down | +| 向上滾動一行 | Super + Shift + Up | +| 向下滾動一行 | Super + Shift + Down | +| 設置標記 | Alt + H | +| 取消標記 | Alt + Shift + H | +| 複製行 | Super + C | +| 剪切行 | Super + X | +| 合併行 | Ctrl + J | + +### 開啟/關閉只讀模式 + +1. 使用文本編輯器打開文檔,單擊右鍵,選擇 **開啟只讀模式**。 +2. 在只讀模式下,單擊右鍵,選擇 **關閉只讀模式**。 + +![read_only](fig/read_only.png) + +![read_only](fig/read_only02.png) + +### 語音朗讀 + +1. 選取一段文字後,點擊右鍵選擇 **語音朗讀**,即可將選中的文字以語音播報。 + +2. 朗讀過程中,點擊朗讀控制項上的關閉按鈕即可終止語音朗讀。 + + > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵菜單中 **語音朗讀** 不可啟動,處置灰狀態。 + + +![read_only](fig/reading.png) + +### 語音聽寫 + +1. 在文字編輯區域內,點擊滑鼠右鍵選擇 **語音聽寫**,即可透過咪高峰輸入語音,轉換成的文字將會插入至游標所在位置。 +2. 在聽寫模式下,點擊聽寫控制項上的關閉按鈕即可停止語音聽寫。 + +![read-only](fig/listen.png) + +### 列編輯 + +在文本編輯器界面,按住鍵盤上的 **Alt** 鍵不放,鼠標左鍵單擊多列啟動列編輯模式,為多行代碼同時編輯相同的內容,提高工作效率。 + +![mode](fig/column_mode.png) + +### 顏色標記 + +在文本編輯器界面,單擊鼠標右鍵選擇 **顏色標記**,在其下拉列表中進行選擇。 + +![color](fig/color_tag.png) + + - **設置標記**:對某一行或某一段文本內容添加顏色標記;有8種顏色按鈕可供選擇。 + + 將光標定在某一行,標記當前所在的行。 + + 選中一段文本內容後,標記選中的文本內容。 + - **標記所有**:將文本內容全部標記或對已選中的文本內容,在全文中標記匹配項;有8種顏色按鈕可供選擇。 + + 將光標定在任意一行,將文本內容全部標記。 + + 選中一段文本內容,在全文中標記匹配項。 + - **清除上次標記**:清除上次標記操作。 + - **清除所有標記**:清除當前所有標記。 + + + +### 書籤管理 + +在文本編輯器設置界面,勾選 **顯示書籤圖標** 後,您可以為任意一行的文本內容添加一個書籤。將鼠標指針移至左側欄任意行號前面會顯示圖標 ![icon](../common/bookmark_normal_light.svg),添加成功後該行的書籤圖標會變為藍色填充的圖標 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 + +- 添加書籤 + + + 鼠標左鍵單擊 ![icon](../common/bookmark_normal_light.svg),為該行添加書籤。 + + 鼠標右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + + 將光標定在文本中任意一行,使用快捷鍵 **Ctrl + F2** 為該行添加一個書籤。 + +- 刪除書籤 + + + 鼠標左鍵單擊已填充顏色的書籤圖標,直接刪除該行書籤。 + + 鼠標右鍵單擊已填充顏色的書籤圖標,選擇 **清除書籤**,刪除該行書籤。 + + 鼠標右鍵單擊書籤圖標,選擇 **清除所有書籤**,刪除該文本的全部書籤。 + + >![icon](../common/notes.svg)說明:鼠標移到左側行號前面才會顯示書籤圖標,移出書籤區域,書籤圖標消失。添加書籤後,該圖標一直顯示。 + + + +### 注釋管理 + +在文本編輯器界面,您可對擴展名為.cpp 、.java 、.py等代碼類型的文件進行添加注釋的操作。 +- 添加注釋 + + 選中一段文本內容,在右鍵菜單中選擇 **添加注釋**。 + + 選中一段文本內容,使用快捷鍵 **Alt + A** 添加注釋。 + +- 取消注釋 + + 選中一段已添加注釋的文本內容,在右鍵菜單中選擇 **取消注釋**。 + + 選中一段已添加注釋的文本內容,使用快捷鍵 **Alt + Z** 取消注釋。 + + >![notes](../common/notes.svg)說明:支持不同代碼語言的注釋,具體以實際為主。例如C,C#,Java注釋符號為 //,Python 注釋符號為 #。 + + + +## 主菜單 + +在主菜單中,您可以新建窗口、新建標籤頁、[查找文本](#查找文本)、[替換文本](#替換文本)、保存文件、切換窗口主題、查看幫助手冊,了解文本編輯器的更多訊息。 +### 設置 + +您可以對基礎訊息、快捷鍵和高級訊息進行設置。 + +#### 基礎設置 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設置**。 +2. 在基礎設置選項,您可以選擇: + - 設置字體樣式和字號大小。 + - 勾選 **自動換行**,在編輯區自動換行。 + - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示 ![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開當前層次或所有層次。 + - 勾選 **顯示行號**,在左側欄顯示行號。 + - 勾選 **當前行高亮**,光標所在的行高亮顯示。 + - 勾選 **顯示書籤圖標**,在左側欄顯示書籤圖標。 + - 勾選 **顯示空白制符/製表符**,顯示文本中的空白字符和製表符,您也可手動輸入或刪除空白字符和製表符。 + + > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 來調節文本編輯器的默認字號。使用 **Ctrl + 0** 恢復默認字號。 + + + +#### 快捷鍵設置 + +1. 單擊![icon_menu](../common/icon_menu.svg)> **設置**,在 **快捷鍵** 選項查看當前快捷鍵。 +2. 選擇一種快捷鍵映射。 +3. 單擊快捷鍵編輯框 ,可以自定義快捷鍵。 + + > ![notes](../common/notes.svg)說明: 快捷鍵映射允許您選擇某一種鍵盤快捷鍵。您可以使用標準快捷鍵,Emacs快捷鍵,或自定義快捷鍵,以符合您的使用習慣。 + + +#### 高級設置 + +1. 單擊 ![icon_menu](../common/icon_menu.svg) >**設置**。 +2. 在 **高級設置** 選項,您可以設置: + - 窗口狀態:正常窗口,最大化或全螢幕。 + - Tab字符寬度:Tab縮進所佔用的空間大小。 + + + +### 主題 + +窗口主題包含淺色主題、深色主題和系統主題。 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **主題**,選擇一個主題顏色。 + +### 幫助 + +查看幫助手冊,進一步了解和使用文本編輯器。 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **幫助**。 +3. 查看文本編輯器的幫助手冊。 + +### 關於 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **關於**。 +3. 查看文本編輯器的版本和介紹。 + +### 退出 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **退出**。 \ No newline at end of file diff --git a/src/assets/loongarch64/editor/zh_HK/fig/colortag.png b/src/assets/loongarch64/editor/zh_HK/fig/colortag.png new file mode 100644 index 000000000..8e1e061f6 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/colortag.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/fig/column_mode.png b/src/assets/loongarch64/editor/zh_HK/fig/column_mode.png new file mode 100644 index 000000000..d21f318ee Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/column_mode.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/fig/highlight.png b/src/assets/loongarch64/editor/zh_HK/fig/highlight.png new file mode 100644 index 000000000..ee2b7748b Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/highlight.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/fig/hotkey.png b/src/assets/loongarch64/editor/zh_HK/fig/hotkey.png new file mode 100644 index 000000000..84c50b0cf Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/hotkey.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/fig/listen.png b/src/assets/loongarch64/editor/zh_HK/fig/listen.png new file mode 100644 index 000000000..8283dc5af Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/listen.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/fig/overview.png b/src/assets/loongarch64/editor/zh_HK/fig/overview.png new file mode 100644 index 000000000..92faa4130 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/overview.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/fig/printer.png b/src/assets/loongarch64/editor/zh_HK/fig/printer.png new file mode 100644 index 000000000..8ea80e58d Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/printer.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/fig/printer_setting.png b/src/assets/loongarch64/editor/zh_HK/fig/printer_setting.png new file mode 100644 index 000000000..8a54f878e Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/printer_setting.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/fig/read_only.png b/src/assets/loongarch64/editor/zh_HK/fig/read_only.png new file mode 100644 index 000000000..d514402cb Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/read_only.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/fig/read_only02.png b/src/assets/loongarch64/editor/zh_HK/fig/read_only02.png new file mode 100644 index 000000000..45aa5763d Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/read_only02.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/fig/reading.png b/src/assets/loongarch64/editor/zh_HK/fig/reading.png new file mode 100644 index 000000000..71a466d33 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/reading.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/fig/togglecase.png b/src/assets/loongarch64/editor/zh_HK/fig/togglecase.png new file mode 100644 index 000000000..cfc32f190 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_HK/fig/togglecase.png differ diff --git a/src/assets/loongarch64/editor/zh_HK/p_editor.md b/src/assets/loongarch64/editor/zh_HK/p_editor.md new file mode 100644 index 000000000..20e52b360 --- /dev/null +++ b/src/assets/loongarch64/editor/zh_HK/p_editor.md @@ -0,0 +1,326 @@ +# 文本編輯器|deepin-editor| + +## 概述 + +文本編輯器是一個簡單的文本編輯工具。您可以用它書寫簡單的文本文檔,也可以使用它的高級特性,讓它成為一個代碼編輯工具,支持代碼語法高亮。 + +![overview](fig/overview.png) + +## 使用入門 + +### 運行文本編輯器 + +1. 單擊任務欄上的啟動器圖標 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器界面。 +2. 上下滾動鼠標滾輪瀏覽或通過搜索,找到文本編輯器圖標 ![deepin_editor](../common/deepin_editor.svg),單擊運行。 +3. 右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),您可以: + + - 單擊 **傳送到桌面**,在桌面創建快捷方式。 + - 單擊 **傳送到任務欄**,將應用程序固定到任務欄。 + - 單擊 **加至開機啟動**,將應用程序添加到開機啟動項,在電腦開機時自動運行該應用。 + +### 關閉文本編輯器 + +- 在文本編輯器界面,單擊 ![close_icon](../common/close_icon.svg),關閉文本編輯器。 +- 在文本編輯器界面,單擊主菜單 ![icon_menu](../common/icon_menu.svg) > **退出** ,關閉文本編輯器。 +- 在任務欄右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),選擇 **關閉所有** ,關閉文本編輯器。 + + +### 查看快捷鍵 + +在文本編輯器界面,使用快捷鍵 **Ctrl + Shift + ?** 打開快捷鍵預覽界面,您也可以在設置界面查看快捷鍵。熟練地使用快捷鍵,將大大提升您的操作效率。 + +![1|hotkey](fig/hotkey.png) + +## 基本操作 + +### 管理標籤頁 + +- 新建標籤頁/窗口 + + - 單擊標籤頁上的按鈕 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **新標籤頁** 或使用快捷鍵 **Ctrl + T** 創建一個新的標籤頁。 + - 單擊 ![icon_menu](../common/icon_menu.svg) > **新窗口** 或使用快捷鍵 **Ctrl + N** 創建一個新的窗口。 + +- 調整標籤頁/窗口 + + - 拖拽同一窗口內的標籤頁重新排序。 + - 滾動鼠標切換同一窗口內的標籤頁。 + - 移出標籤頁創建一個新的窗口,或者從一個窗口移到另外一個窗口中。 + +- 關閉標籤頁/窗口 + + 當窗口中僅有一個標籤頁時,關閉標籤頁的同時也會關閉窗口。 + - 使用快捷鍵 **Ctrl + W** 關閉當前標籤頁。 + - 單擊標籤頁上的 ![close_icon](../common/close_icon.svg) 按鈕或者單擊鼠標中鍵,關閉當前標籤頁。 + - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 來關閉標籤頁。 + + > ![notes](../common/notes.svg)說明:如果您的文件發生了變化而沒有保存,文本編輯器會在關閉前提示您保存更改。 + + +### 打開文件 + +您可以採用以下方式打開一個或同時打開多個文本文件,選中的文件將會在新標籤頁中打開: + +- 直接拖動文件到文本編輯器界面或其圖標上。 +- 右鍵單擊文件,選擇 **打開方式** > **文本編輯器**。選擇文本編輯器為默認打開程序後,可直接雙擊打開。 +- 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg) > **打開文件** 或使用快捷鍵 **Ctrl + O**,在彈出的窗口中選擇文件打開。 + + +### 保存文件 +- 單擊 ![icon_menu](../common/icon_menu.svg) > **保存** 或使用快捷鍵 **Ctrl + S**,保存當前文件。 +- 單擊 ![icon_menu](../common/icon_menu.svg) > **另存為** 或使用快捷鍵 **Ctrl + Shift + S**,另存當前文件。 + + + +### 打印文件 + +在文本編輯器中使用打印,需要您連接並配置好打印機。 + +1. 單擊 ![icon_menu](../common/icon_menu.svg) > **打印**,也可以使用快捷鍵 **Ctrl + P** 打開打印預覽。 +2. 在打印預覽界面,您可以預覽文件,選擇打印機並設置打印頁面。 +3. 在打印預覽界面,單擊 **高級設置**,可配置紙張大小、打印方式等相關參數。 +4. 單擊 **打印** 即可將文件發送到打印機打印。 + + + +## 編輯文本 + +### 移動光標 + +除了使用方向鍵和鼠標單擊移動光標,您還可以使用以下快捷鍵迅速移動光標: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 保存光標位置 | Ctrl + Shift + > | +| 重置光標位置(跳轉到上次光標保存的位置) | Ctrl + Shift + < | +| 右移一個詞 (光標向右跳過一個詞) | Ctrl + 右方向鍵 | +| 左移一個詞 (光標向左跳過一個詞) | Ctrl + 左方向鍵 | +| 移動到行尾 | End | +| 移動到行頭 | Home | +| 移動到文本結尾 | Ctrl + End | +| 移動到文本開頭 | Ctrl + Home | +| 移動到行縮進 | Ctrl + M | +| 向右匹配 (光標移動到右括號的後面) | Alt + P | +| 向左匹配(光標移動到左括號的前面) | Alt + N | + +### 切換大小寫 + +切換大小寫功能可以將選中的文本全部改為大寫字母、小寫字母或者讓首字母大寫。 + +1. 選中待更改的文本內容。 +2. 單擊右鍵,選擇 **切換大小寫**。 +3. 選擇 **大寫**/**小寫**/**首字母大寫** 選項,更改會立即生效。 + +您也可以使用快捷鍵 **Alt + U/ L/ C** 迅速切換大小寫。 + +![toggle_case](fig/toggle_case.png) + +### 高亮文本 + +文本編輯器支持高亮不同類型的文本。 +單擊底部狀態欄最右側的三角符號, 選擇某種文本類型。若文本中有相應內容則會自動高亮。 + +![highlight](fig/highlight.png) + +### 刪除文本 +除了向左或向右逐個刪除字符外,您還可以使用以下快捷鍵迅速刪除字符: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 刪除到行尾 | Ctrl + K | +| 刪除當前行 | Ctrl + Shift + K | +| 向左刪除一個詞 | Alt + Shift + N | +| 向右刪除一個詞 | Alt + Shift + M | + +### 撤銷操作 + +如果在編輯文本時發生誤操作,可以使用快捷鍵 **Ctrl + Z** 撤銷操作,或者在右鍵菜單中選擇 **撤銷**。 + +### 查找文本 + +1. 單擊 ![menu](../common/icon_menu.svg) > **查找** 或使用快捷鍵 **Ctrl + F** 打開查找窗口。 +2. 在查找窗口中,輸入要搜索的文本。 +3. 單擊 **下一個**、**上一個** 逐個查找,或使用 **Enter** 鍵查找下一個匹配項。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉查找窗口。 + +> ![tips](../common/tips.svg)竅門:選中一段文本後再進行搜索,則這段文本會自動出現在查找窗口中。 + +### 替換文本 +1. 單擊 ![menu](../common/icon_menu.svg) > **替換** 或使用快捷鍵 **Ctrl + H** 打開替換窗口。 +2. 在替換窗口中,輸入要替換的文本以及新文本。 +3. 單擊 **替換** 逐個替換,單擊 **剩餘替換**、**全部替換** 一次性替換剩餘的或所有的匹配文本。單擊 **跳過** 不替換當前匹配的文本。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉搜索窗口。 + +### 跳到行 +使用該功能可以迅速跳轉到任一行。 +在右鍵菜單中選擇 **跳到行** 或者使用快捷鍵 **Ctrl + G** ,輸入行號即可跳轉到相應行。 + +### 編輯行 + +您可以使用以下快捷鍵迅速編輯行: + +| 功能 | 快捷鍵 | +| ------------ | ------------ | +| 向上插入一行(在上方插入一行) | Ctrl + Enter | +| 向下插入一行(在下方插入一行) | Ctrl + Shift + Enter | +| 複製並黏貼當前行 | Ctrl + Shift + D | +| 上移一行(與上一行交換位置) | Ctrl + Shift + Up | +| 下移一行(與下一行交換位置) | Ctrl + Shift + Down | +| 向上滾動一行 | Super + Shift + Up | +| 向下滾動一行 | Super + Shift + Down | +| 設置標記 | Alt + H | +| 取消標記 | Alt + Shift + H | +| 複製行 | Super + C | +| 剪切行 | Super + X | +| 合併行 | Ctrl + J | + +### 開啟/關閉只讀模式 + +1. 使用文本編輯器打開文檔,單擊右鍵,選擇 **開啟只讀模式**。 +2. 在只讀模式下,單擊右鍵,選擇 **關閉只讀模式**。 + +![read_only](fig/read_only.png) + +![read_only](fig/read_only02.png) + +### 語音朗讀 + +1. 選取一段文字後,點擊右鍵選擇 **語音朗讀**,即可將選中的文字以語音播報。 + +2. 朗讀過程中,點擊朗讀控制項上的關閉按鈕即可終止語音朗讀。 + + > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵菜單中 **語音朗讀** 不可啟動,處置灰狀態。 + + +![read_only](fig/reading.png) + +### 語音聽寫 + +1. 在文字編輯區域內,點擊滑鼠右鍵選擇 **語音聽寫**,即可透過咪高峰輸入語音,轉換成的文字將會插入至游標所在位置。 +2. 在聽寫模式下,點擊聽寫控制項上的關閉按鈕即可停止語音聽寫。 + +![read-only](fig/listen.png) + +### 列編輯 + +在文本編輯器界面,按住鍵盤上的 **Alt** 鍵不放,鼠標左鍵單擊多列啟動列編輯模式,為多行代碼同時編輯相同的內容,提高工作效率。 + +![mode](fig/column_mode.png) + +### 顏色標記 + +在文本編輯器界面,單擊鼠標右鍵選擇 **顏色標記**,在其下拉列表中進行選擇。 + +![color](fig/color_tag.png) + + - **設置標記**:對某一行或某一段文本內容添加顏色標記;有8種顏色按鈕可供選擇。 + + 將光標定在某一行,標記當前所在的行。 + + 選中一段文本內容後,標記選中的文本內容。 + - **標記所有**:將文本內容全部標記或對已選中的文本內容,在全文中標記匹配項;有8種顏色按鈕可供選擇。 + + 將光標定在任意一行,將文本內容全部標記。 + + 選中一段文本內容,在全文中標記匹配項。 + - **清除上次標記**:清除上次標記操作。 + - **清除所有標記**:清除當前所有標記。 + + + +### 書籤管理 + +在文本編輯器設置界面,勾選 **顯示書籤圖標** 後,您可以為任意一行的文本內容添加一個書籤。將鼠標指針移至左側欄任意行號前面會顯示圖標 ![icon](../common/bookmark_normal_light.svg),添加成功後該行的書籤圖標會變為藍色填充的圖標 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 + +- 添加書籤 + + + 鼠標左鍵單擊 ![icon](../common/bookmark_normal_light.svg),為該行添加書籤。 + + 鼠標右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + + 將光標定在文本中任意一行,使用快捷鍵 **Ctrl + F2** 為該行添加一個書籤。 + +- 刪除書籤 + + + 鼠標左鍵單擊已填充顏色的書籤圖標,直接刪除該行書籤。 + + 鼠標右鍵單擊已填充顏色的書籤圖標,選擇 **清除書籤**,刪除該行書籤。 + + 鼠標右鍵單擊書籤圖標,選擇 **清除所有書籤**,刪除該文本的全部書籤。 + + >![icon](../common/notes.svg)說明:鼠標移到左側行號前面才會顯示書籤圖標,移出書籤區域,書籤圖標消失。添加書籤後,該圖標一直顯示。 + + + +### 注釋管理 + +在文本編輯器界面,您可對擴展名為.cpp 、.java 、.py等代碼類型的文件進行添加注釋的操作。 +- 添加注釋 + + 選中一段文本內容,在右鍵菜單中選擇 **添加注釋**。 + + 選中一段文本內容,使用快捷鍵 **Alt + A** 添加注釋。 + +- 取消注釋 + + 選中一段已添加注釋的文本內容,在右鍵菜單中選擇 **取消注釋**。 + + 選中一段已添加注釋的文本內容,使用快捷鍵 **Alt + Z** 取消注釋。 + + >![notes](../common/notes.svg)說明:支持不同代碼語言的注釋,具體以實際為主。例如C,C#,Java注釋符號為 //,Python 注釋符號為 #。 + + + +## 主菜單 + +在主菜單中,您可以新建窗口、新建標籤頁、[查找文本](#查找文本)、[替換文本](#替換文本)、保存文件、切換窗口主題、查看幫助手冊,了解文本編輯器的更多訊息。 +### 設置 + +您可以對基礎訊息、快捷鍵和高級訊息進行設置。 + +#### 基礎設置 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設置**。 +2. 在基礎設置選項,您可以選擇: + - 設置字體樣式和字號大小。 + - 勾選 **自動換行**,在編輯區自動換行。 + - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示 ![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開當前層次或所有層次。 + - 勾選 **顯示行號**,在左側欄顯示行號。 + - 勾選 **當前行高亮**,光標所在的行高亮顯示。 + - 勾選 **顯示書籤圖標**,在左側欄顯示書籤圖標。 + - 勾選 **顯示空白制符/製表符**,顯示文本中的空白字符和製表符,您也可手動輸入或刪除空白字符和製表符。 + + > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 來調節文本編輯器的默認字號。使用 **Ctrl + 0** 恢復默認字號。 + + + +#### 快捷鍵設置 + +1. 單擊![icon_menu](../common/icon_menu.svg)> **設置**,在 **快捷鍵** 選項查看當前快捷鍵。 +2. 選擇一種快捷鍵映射。 +3. 單擊快捷鍵編輯框 ,可以自定義快捷鍵。 + + > ![notes](../common/notes.svg)說明: 快捷鍵映射允許您選擇某一種鍵盤快捷鍵。您可以使用標準快捷鍵,Emacs快捷鍵,或自定義快捷鍵,以符合您的使用習慣。 + + +#### 高級設置 + +1. 單擊 ![icon_menu](../common/icon_menu.svg) >**設置**。 +2. 在 **高級設置** 選項,您可以設置: + - 窗口狀態:正常窗口,最大化或全螢幕。 + - Tab字符寬度:Tab縮進所佔用的空間大小。 + + + +### 主題 + +窗口主題包含淺色主題、深色主題和系統主題。 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **主題**,選擇一個主題顏色。 + +### 幫助 + +查看幫助手冊,進一步了解和使用文本編輯器。 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **幫助**。 +3. 查看文本編輯器的幫助手冊。 + +### 關於 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **關於**。 +3. 查看文本編輯器的版本和介紹。 + +### 退出 + +1. 在文本編輯器界面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **退出**。 \ No newline at end of file diff --git a/src/assets/loongarch64/editor/zh_TW/editor.md b/src/assets/loongarch64/editor/zh_TW/editor.md new file mode 100644 index 000000000..ca6298f5d --- /dev/null +++ b/src/assets/loongarch64/editor/zh_TW/editor.md @@ -0,0 +1,323 @@ +# 文字編輯器|deepin-editor| + +## 概述 + +文字編輯器是一個簡單的文字編輯工具。您可以用它書寫簡單的文字檔案,也可以使用它的進階特性,讓它成為一個程式碼編輯工具,支援程式碼語法突顯。 + +![overview](fig/overview.png) + +## 使用入門 + +### 執行文字編輯器 + +1. 單擊任務欄上的啟動器圖示 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器介面。 +2. 上下滾動滑鼠滾輪瀏覽或透過搜尋,找到文字編輯器圖示 ![deepin_editor](../common/deepin_editor.svg)并打開。 +3. 在啟動器中,右鍵單擊![deepin_editor](../common/deepin_editor.svg),您可以: + + - 單擊 **建立桌面捷徑**,在桌面建立捷徑。 + - 單擊 **釘選到Dock**,將應用程式固定到Dock。 + - 單擊 **開機啟動**,將應用程式添加到開機啟動項,在電腦開機時自動執行該應用。 + +### 關閉文字編輯器 + +- 在文字編輯器介面,單擊 ![close_icon](../common/close_icon.svg),關閉文字編輯器。 +- 在文字編輯器介面,單擊主選單 ![icon_menu](../common/icon_menu.svg)> **退出**, 關閉文字編輯器。 +- 在Dock上右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),選擇 **全部關閉**, 關閉文字編輯器。 + + +### 查看快捷鍵 + +在文字編輯器介面上,使用快捷鍵 **Ctrl + Shift + ?** 打開快捷鍵預覽介面。您也可以在設定介面查看快捷鍵。熟練地使用快捷鍵,將大大提升您的操作效率。 + +![1|hotkey](fig/hotkey.png) + +## 基本操作 + +### 管理標籤頁 + +- 建立標籤頁/視窗 + + - 單擊標籤頁上的 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **建立新標籤頁** 或使用組合鍵 **Ctrl + T** 建立一個新的標籤頁。 + - 單擊![icon_menu](../common/icon_menu.svg) > **建立新視窗** 或使用組合鍵 **Ctrl + N** 建立一個新的視窗。 + +- 調整標籤頁/視窗 + + - 拖曳同一視窗內的標籤頁重新排序。 + - 滾動滑鼠切換同一視窗內的標籤頁。 + - 移出標籤頁建立一個新的視窗,或者從一個視窗移到另外一個視窗中。 + +- 關閉標籤頁/視窗 + + 當視窗中僅有一個標籤頁時,關閉標籤頁的同時也會關閉視窗。 + + - 使用快捷鍵 **Ctrl + W** 關閉目前標籤頁。 + - 單擊標籤頁上的 ![close_icon](../common/close_icon.svg) 按鈕或者單擊滑鼠中鍵,關閉目前標籤頁。 + - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 關閉標籤頁。 + + > ![notes](../common/notes.svg)說明:如果您的檔案發生了變化而沒有儲存,文字編輯器會在關閉前提示您儲存更改。 + +### 開啟檔案 + +您可採用以下方式開啟一個或同時開啟多個文字檔案,選中的檔案將會在新標籤頁開啟: + +- 直接拖動檔案到文字編輯器介面或其圖示上。 +- 右鍵單擊檔案,選擇 **用其他程式開啟** > **文字編輯器**。選擇文字編輯器為預設開啟程式後,可直接雙擊檔案開啟。 +- 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)> **開啟檔案** 或使用快捷鍵 **Ctrl + O**,在彈出的視窗中選擇檔案。 + +### 儲存檔案 +- 單擊 ![icon_menu](../common/icon_menu.svg)> **儲存**或使用快捷鍵 **Ctrl + S**,儲存目前檔案。 +- 單擊 ![icon_menu](../common/icon_menu.svg)> **另存新檔** 或 使用快捷鍵**Ctrl + Shift + S**, 另存目前檔案。 + + +### 列印檔案 + +在文字編輯器中使用列印,需要您連接並配置好印表機。 + +1. 單擊 ![icon_menu](../common/icon_menu.svg) > **列印**,也可以使用快捷鍵 **Ctrl + P** 打開列印預覽。 +2. 在列印預覽介面,您可以預覽檔案,選擇印表機並設定列印頁面。 +3. 在列印預覽介面,單擊 **進階設定**,可配置紙張大小、列印方式等相關參數。 +4. 單擊 **列印** 即可將檔案發送到印表機列印。 + +![pagesetup](fig/printer.png) + +![printer](fig/printer_setting.png) + +## 編輯文字 + +### 移動游標 + +除使用方向鍵和滑鼠單擊移動游標,您還可以使用以下快捷鍵迅速移動游標: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 儲存游標位置 | Ctrl + Shift + > | +| 重設游標位置(跳轉到上次游標儲存的位置) | Ctrl + Shift + < | +| 後一個字詞 (游標向右跳過一個字詞) | Ctrl + 右方向鍵 | +| 前一個字詞 (游標向左跳過一個字詞) | Ctrl + 左方向鍵 | +| 移動到行結尾 | End | +| 移動到行開頭 | Home | +| 移動到文字結尾 | Ctrl + End | +| 移動到文字開頭 | Ctrl + Home | +| 移到行縮排區塊 | Ctrl + M | +| 往後一對 (游標移動到右括號的後面) | Alt + P | +| 往前一對(游標移動到左括號的前面) | Alt + N | + +### 切換大小寫 + +切換大小寫功能可以將選中文字全部改為大寫字母、小寫字母或者首字母大寫。 + +1. 選中待更改的文字內容。 +2. 單擊右鍵,選擇 **變更大小寫**。 +3. 選擇 **大寫**/**小寫**/**首字母大寫** 選項。文字格式的更改會立即生效。 + +您也可以使用快捷鍵 **Alt + U/L/C** 迅速切換大小寫。 + +![toggle_case](fig/toggle_case.png) + +### 突顯文字 + +文字編輯器支援突顯不同類型的文字。單擊底部狀態欄最右側的三角符號, 選擇某種文字類型。若文字中有相應內容則會自動突顯。 + +![highlight](fig/highlight.png) + +### 刪除文字 +除了向左或向右逐個刪除字元外,您還可以使用以下快捷鍵迅速刪除字元: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 刪除至行結尾所有字元 | Ctrl + K | +| 刪除目前整行 | Ctrl + Shift + K | +| 刪除前一個字詞 | Alt + Shift + N | +| 刪除後一個字詞 | Alt + Shift + M | + +### 復原操作 + +如果在文字編輯時發生誤操作,您可以使用快捷鍵 **Ctrl + Z** 撤銷操作, 或者在右鍵選單中選擇 **復原**。 + +### 尋找文字 + +1. 單擊 ![menu](../common/icon_menu.svg)> **尋找** 或使用組合鍵 **Ctrl + F**,打開尋找視窗。 +2. 在尋找視窗中,輸入要搜尋的文字。 +3. 單擊 **上一個**、**下一個** 逐個尋找,或使用 **Enter** 鍵尋找下一個匹配項。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉尋找視窗。 + +> ![tips](../common/tips.svg)竅門:選中一段文字,再進行搜尋,則這段文字會自動出現在尋找視窗中。 + +### 取代文字 +1. 單擊 ![menu](../common/icon_menu.svg)> **取代** 或使用組合鍵 **Ctrl + H**,打開取代視窗。 +2. 在取代視窗中,輸入要取代的文字以及新文字。 +3. 單擊 **取代** 逐個取代,單擊 **取代剩餘部份**、**全部取代** 一次性取代剩餘的或所有的匹配文字。單擊 **跳過** 不取代目前匹配的文字。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉取代視窗。 + +### 前往該行 +使用該功能可以迅速前往到任一行。在右鍵選單中選擇 **前往該行** 或者使用组合键 **Ctrl + G**,輸入行號即可前往到相應行。 + +### 編輯行 + +您可以使用以下快捷鍵迅速編輯行: + +| 功能 | 快捷鍵 | +| ------------ | ------------ | +| 於上方換行(在上方插入一行) | Ctrl + Enter | +| 於下方換行(在下方插入一行) | Ctrl + Shift + Enter | +| 複製一行 | Ctrl + Shift + D | +| 切到上一行(與上一行交換位置) | Ctrl + Shift + Up | +| 切到下一行(與下一行交換位置) | Ctrl + Shift + Down | +| 捲到上一行 | Super + Shift + Up | +| 捲到下一行 | Super + Shift + Down | +| 標記 | Alt + H | +| 取消標記 | Alt + Shift + H | +| 複製一行 | Super + C | +| 剪下一行 | Super + X | +| 合併一行 | Ctrl + J | + +### 開啟/關閉唯讀模式 + +1. 使用文字編輯器打開檔案,單擊右鍵,選擇 **開啟唯讀模式**。 +2. 在唯讀模式下,單擊右鍵,選擇 **關閉唯讀模式**。 + +![read_only](fig/read_only.png) + +![read_only](fig/read_only_02.png) + +### 語音朗讀 + +1. 選取一段文字後,點選右鍵選擇 **語音朗讀**,系統將以語音唸出選取的文字。 + +2. 朗讀過程中,點選朗讀控制項上的關閉按鈕即可結束語音朗讀。 + + > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵選單中 **語音朗讀** 不可啟動,處置灰狀態。 + +![read_only](fig/reading.png) + +### **語音聽寫** + +1. 在文字編輯區域內,點選滑鼠右鍵選擇 **語音聽寫**,即可透過麥克風輸入語音,轉換的文字將插入到游標所在位置。 +2. 在聽寫模式下,點選聽寫控制項上的關閉按鈕即可結束語音聽寫。 + +![read-only](fig/listen.png) + + +### 列编辑 +在文字編輯器介面,按住鍵盤上的 **Alt** 鍵不放,滑鼠左鍵單擊多列啟動列編輯模式,為多行程式碼同時編輯相同的內容,提高工作效率。 + +![column mode](fig/column mode.png) + +### 顏色標記 + +在文字編輯器介面,滑鼠右鍵選擇 **顏色標記**,在其下拉選單中進行選擇。 + +![color](fig/color_tag.png) + + - **添加標記**:對某一行或某一段文字內容添加顏色標記;有8種顏色按鈕可供選擇。 + + 將游標定在某一行,標記目前所在的行。 + + 選中一段文字內容後,標記選中的文字內容。 + - **標記所有**:將文字內容全部標記或對已選中的文字內容,在全文中標記匹配項;有8種顏色按鈕可供選擇。 + + 將游標定在任意一行,將文字內容全部標記。 + + 選中一段文字內容,在全文中標記匹配項。 + - **清除上次標記**:清除上次標記操作。 + - **清除所有標記**:清除目前所有標記。 + + + +### 書籤管理 + +在文字編輯器設定介面,勾選 **顯示書籤圖標** 後,您可以為任意一行的文字內容添加書籤,將滑鼠遊標移至左側欄任意一行處會顯示 ![icon](../common/bookmark_normal_light.svg),添加成功後該行的書籤圖示會變為藍色填充的圖示 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 + +- 添加書籤 + + + 滑鼠左鍵單擊 ![icon](../common/bookmark_normal_light.svg),為該行添加書籤。 + + 滑鼠右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + + 將游標定在文字中任意一行,使用組合鍵 **Ctrl + F2** 為該行添加一個書籤。 + +- 刪除書籤 + + + 滑鼠左鍵單擊已填充顏色的書籤圖示,直接刪除該行書籤。 + + 滑鼠右鍵單擊已填充顏色的書籤圖示,選擇 **清除書籤**,刪除該行書籤。 + + 滑鼠右鍵單擊書籤圖示,選擇 **清除所有書籤**,刪除該文字的全部書籤。 + + >![icon](../common/notes.svg)說明:滑鼠移到左側行號前面才會顯示書籤圖示,移出書籤區域,書籤圖示消失。添加書籤後,該圖示一直顯示。 + + + +### 注釋管理 + +在文字編輯器介面,您可對副檔名為cpp 、java 、py等程式碼類型的檔案進行添加注釋的操作。 + +- 添加注釋 + + 選中一段文字內容,在右鍵選單選擇 **添加注釋**。 + + 選中一段文字內容,使用組合鍵 **Alt + A** 添加注釋。 + +- 取消注釋 + + 選中一段已添加注釋的文字內容,在右鍵選單中選擇 **取消注釋**。 + + 選中一段已添加注釋的文字內容,使用組合鍵 **Alt + Z** 取消注釋。 + + >![notes](../common/notes.svg)說明:支援不同程式碼語言的注釋,具體以實際為主。例如C,C#,Java注釋符號為 //,Python 注釋符號為 #。 + + + +## 主選單 + +在主選單中,您可以 建立新視窗、建立新標籤頁、[尋找文字](#尋找文字)、[取代文字](#取代文字)、儲存檔案、切換視窗主題、查看說明手冊,了解文字編輯器的更多訊息。 + +### 設定 +您可以對基本訊息、快捷鍵和進階訊息進行設定。 + +#### 基本設定 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設定**。 +2. 在基本設定選項,您可以選擇: + - 設定字體樣式,選擇字體樣式和字體大小。 + - 勾選 **文字換行**,在編輯區自動換行。 + - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開目前層次或所有層次。 + - 勾選 **顯示行號**,在左側欄顯示行號。 + - 勾選**當前行高亮**,游標所在的行突顯顯示。 + - 勾選 **顯示書籤圖標**,在左側欄顯示書籤圖標。 + - 勾選 **顯示空白制符/制表符**,顯示文字中的空白字符和制表符,您也可手動輸入或刪除空白字符和制表符。 + > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 調節文字編輯器的預設字號。使用 **Ctrl + 0** 復原預設字號。 + + + +#### 快捷鍵設定 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設定**,在 **快捷鍵** 選項查看目前快捷鍵。 +2. 選擇一種按鍵映射。 +3. 單擊並重新輸入快捷鍵,可以自訂快捷鍵。 + + > ![notes](../common/notes.svg)說明: 按鍵映射允許您選擇某一種鍵盤快捷鍵。您可以使用標準快捷鍵、Emacs快捷鍵、或自訂快捷鍵,以符合您的使用習慣。 + + +#### 進階設定 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設定**。 +2. 在 **進階設定** 選項,您可以設定: + - 視窗大小:一般、最大或全螢幕。 + - Tab寬度:Tab縮排所占用的空間大小。 + + + +### 主題 + +視窗主題包含亮色主題、暗色主題和系統主題。 + +1. 在文字編輯器介面,單擊![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **主題**,選擇一個主題顏色。 + +### 說明 + +查看說明手冊,進一步了解和使用文字編輯器。 + +1. 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **說明**。 +3. 查看文字編輯器的說明手冊。 + +### 關於 + +1. 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **關於**。 +3. 查看文字編輯器的版本和介紹。 + +### 退出 + +1. 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **退出**。 \ No newline at end of file diff --git a/src/assets/loongarch64/editor/zh_TW/fig/colortag.png b/src/assets/loongarch64/editor/zh_TW/fig/colortag.png new file mode 100644 index 000000000..158d2be62 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/colortag.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/fig/column_mode.png b/src/assets/loongarch64/editor/zh_TW/fig/column_mode.png new file mode 100644 index 000000000..d21f318ee Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/column_mode.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/fig/highlight.png b/src/assets/loongarch64/editor/zh_TW/fig/highlight.png new file mode 100644 index 000000000..d564bb7f4 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/highlight.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/fig/hotkey.png b/src/assets/loongarch64/editor/zh_TW/fig/hotkey.png new file mode 100644 index 000000000..e3225d97e Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/hotkey.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/fig/listen.png b/src/assets/loongarch64/editor/zh_TW/fig/listen.png new file mode 100644 index 000000000..a6515ac19 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/listen.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/fig/overview.png b/src/assets/loongarch64/editor/zh_TW/fig/overview.png new file mode 100644 index 000000000..92faa4130 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/overview.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/fig/printer.png b/src/assets/loongarch64/editor/zh_TW/fig/printer.png new file mode 100644 index 000000000..cc50a7a3d Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/printer.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/fig/printer_setting.png b/src/assets/loongarch64/editor/zh_TW/fig/printer_setting.png new file mode 100644 index 000000000..ae803c9dd Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/printer_setting.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/fig/read_only.png b/src/assets/loongarch64/editor/zh_TW/fig/read_only.png new file mode 100644 index 000000000..1bbf8d415 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/read_only.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/fig/read_only_02.png b/src/assets/loongarch64/editor/zh_TW/fig/read_only_02.png new file mode 100644 index 000000000..607c69111 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/read_only_02.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/fig/reading.png b/src/assets/loongarch64/editor/zh_TW/fig/reading.png new file mode 100644 index 000000000..f14caf7c6 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/reading.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/fig/togglecase.png b/src/assets/loongarch64/editor/zh_TW/fig/togglecase.png new file mode 100644 index 000000000..d6ea22c90 Binary files /dev/null and b/src/assets/loongarch64/editor/zh_TW/fig/togglecase.png differ diff --git a/src/assets/loongarch64/editor/zh_TW/p_editor.md b/src/assets/loongarch64/editor/zh_TW/p_editor.md new file mode 100644 index 000000000..ca6298f5d --- /dev/null +++ b/src/assets/loongarch64/editor/zh_TW/p_editor.md @@ -0,0 +1,323 @@ +# 文字編輯器|deepin-editor| + +## 概述 + +文字編輯器是一個簡單的文字編輯工具。您可以用它書寫簡單的文字檔案,也可以使用它的進階特性,讓它成為一個程式碼編輯工具,支援程式碼語法突顯。 + +![overview](fig/overview.png) + +## 使用入門 + +### 執行文字編輯器 + +1. 單擊任務欄上的啟動器圖示 ![deepin_launcher](../common/deepin_launcher.svg),進入啟動器介面。 +2. 上下滾動滑鼠滾輪瀏覽或透過搜尋,找到文字編輯器圖示 ![deepin_editor](../common/deepin_editor.svg)并打開。 +3. 在啟動器中,右鍵單擊![deepin_editor](../common/deepin_editor.svg),您可以: + + - 單擊 **建立桌面捷徑**,在桌面建立捷徑。 + - 單擊 **釘選到Dock**,將應用程式固定到Dock。 + - 單擊 **開機啟動**,將應用程式添加到開機啟動項,在電腦開機時自動執行該應用。 + +### 關閉文字編輯器 + +- 在文字編輯器介面,單擊 ![close_icon](../common/close_icon.svg),關閉文字編輯器。 +- 在文字編輯器介面,單擊主選單 ![icon_menu](../common/icon_menu.svg)> **退出**, 關閉文字編輯器。 +- 在Dock上右鍵單擊 ![deepin_editor](../common/deepin_editor.svg),選擇 **全部關閉**, 關閉文字編輯器。 + + +### 查看快捷鍵 + +在文字編輯器介面上,使用快捷鍵 **Ctrl + Shift + ?** 打開快捷鍵預覽介面。您也可以在設定介面查看快捷鍵。熟練地使用快捷鍵,將大大提升您的操作效率。 + +![1|hotkey](fig/hotkey.png) + +## 基本操作 + +### 管理標籤頁 + +- 建立標籤頁/視窗 + + - 單擊標籤頁上的 ![plus_icon](../common/+.svg) 或 ![icon_menu](../common/icon_menu.svg) > **建立新標籤頁** 或使用組合鍵 **Ctrl + T** 建立一個新的標籤頁。 + - 單擊![icon_menu](../common/icon_menu.svg) > **建立新視窗** 或使用組合鍵 **Ctrl + N** 建立一個新的視窗。 + +- 調整標籤頁/視窗 + + - 拖曳同一視窗內的標籤頁重新排序。 + - 滾動滑鼠切換同一視窗內的標籤頁。 + - 移出標籤頁建立一個新的視窗,或者從一個視窗移到另外一個視窗中。 + +- 關閉標籤頁/視窗 + + 當視窗中僅有一個標籤頁時,關閉標籤頁的同時也會關閉視窗。 + + - 使用快捷鍵 **Ctrl + W** 關閉目前標籤頁。 + - 單擊標籤頁上的 ![close_icon](../common/close_icon.svg) 按鈕或者單擊滑鼠中鍵,關閉目前標籤頁。 + - 右鍵單擊標籤頁,選擇 **關閉標籤頁** 、**關閉其他標籤頁** 或 **更多關閉方式** 關閉標籤頁。 + + > ![notes](../common/notes.svg)說明:如果您的檔案發生了變化而沒有儲存,文字編輯器會在關閉前提示您儲存更改。 + +### 開啟檔案 + +您可採用以下方式開啟一個或同時開啟多個文字檔案,選中的檔案將會在新標籤頁開啟: + +- 直接拖動檔案到文字編輯器介面或其圖示上。 +- 右鍵單擊檔案,選擇 **用其他程式開啟** > **文字編輯器**。選擇文字編輯器為預設開啟程式後,可直接雙擊檔案開啟。 +- 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)> **開啟檔案** 或使用快捷鍵 **Ctrl + O**,在彈出的視窗中選擇檔案。 + +### 儲存檔案 +- 單擊 ![icon_menu](../common/icon_menu.svg)> **儲存**或使用快捷鍵 **Ctrl + S**,儲存目前檔案。 +- 單擊 ![icon_menu](../common/icon_menu.svg)> **另存新檔** 或 使用快捷鍵**Ctrl + Shift + S**, 另存目前檔案。 + + +### 列印檔案 + +在文字編輯器中使用列印,需要您連接並配置好印表機。 + +1. 單擊 ![icon_menu](../common/icon_menu.svg) > **列印**,也可以使用快捷鍵 **Ctrl + P** 打開列印預覽。 +2. 在列印預覽介面,您可以預覽檔案,選擇印表機並設定列印頁面。 +3. 在列印預覽介面,單擊 **進階設定**,可配置紙張大小、列印方式等相關參數。 +4. 單擊 **列印** 即可將檔案發送到印表機列印。 + +![pagesetup](fig/printer.png) + +![printer](fig/printer_setting.png) + +## 編輯文字 + +### 移動游標 + +除使用方向鍵和滑鼠單擊移動游標,您還可以使用以下快捷鍵迅速移動游標: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 儲存游標位置 | Ctrl + Shift + > | +| 重設游標位置(跳轉到上次游標儲存的位置) | Ctrl + Shift + < | +| 後一個字詞 (游標向右跳過一個字詞) | Ctrl + 右方向鍵 | +| 前一個字詞 (游標向左跳過一個字詞) | Ctrl + 左方向鍵 | +| 移動到行結尾 | End | +| 移動到行開頭 | Home | +| 移動到文字結尾 | Ctrl + End | +| 移動到文字開頭 | Ctrl + Home | +| 移到行縮排區塊 | Ctrl + M | +| 往後一對 (游標移動到右括號的後面) | Alt + P | +| 往前一對(游標移動到左括號的前面) | Alt + N | + +### 切換大小寫 + +切換大小寫功能可以將選中文字全部改為大寫字母、小寫字母或者首字母大寫。 + +1. 選中待更改的文字內容。 +2. 單擊右鍵,選擇 **變更大小寫**。 +3. 選擇 **大寫**/**小寫**/**首字母大寫** 選項。文字格式的更改會立即生效。 + +您也可以使用快捷鍵 **Alt + U/L/C** 迅速切換大小寫。 + +![toggle_case](fig/toggle_case.png) + +### 突顯文字 + +文字編輯器支援突顯不同類型的文字。單擊底部狀態欄最右側的三角符號, 選擇某種文字類型。若文字中有相應內容則會自動突顯。 + +![highlight](fig/highlight.png) + +### 刪除文字 +除了向左或向右逐個刪除字元外,您還可以使用以下快捷鍵迅速刪除字元: + +| 功能 | 快捷鍵 | +| --------------- | ------------ | +| 刪除至行結尾所有字元 | Ctrl + K | +| 刪除目前整行 | Ctrl + Shift + K | +| 刪除前一個字詞 | Alt + Shift + N | +| 刪除後一個字詞 | Alt + Shift + M | + +### 復原操作 + +如果在文字編輯時發生誤操作,您可以使用快捷鍵 **Ctrl + Z** 撤銷操作, 或者在右鍵選單中選擇 **復原**。 + +### 尋找文字 + +1. 單擊 ![menu](../common/icon_menu.svg)> **尋找** 或使用組合鍵 **Ctrl + F**,打開尋找視窗。 +2. 在尋找視窗中,輸入要搜尋的文字。 +3. 單擊 **上一個**、**下一個** 逐個尋找,或使用 **Enter** 鍵尋找下一個匹配項。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉尋找視窗。 + +> ![tips](../common/tips.svg)竅門:選中一段文字,再進行搜尋,則這段文字會自動出現在尋找視窗中。 + +### 取代文字 +1. 單擊 ![menu](../common/icon_menu.svg)> **取代** 或使用組合鍵 **Ctrl + H**,打開取代視窗。 +2. 在取代視窗中,輸入要取代的文字以及新文字。 +3. 單擊 **取代** 逐個取代,單擊 **取代剩餘部份**、**全部取代** 一次性取代剩餘的或所有的匹配文字。單擊 **跳過** 不取代目前匹配的文字。 +4. 按下 **Esc** 鍵或單擊關閉按鈕,關閉取代視窗。 + +### 前往該行 +使用該功能可以迅速前往到任一行。在右鍵選單中選擇 **前往該行** 或者使用组合键 **Ctrl + G**,輸入行號即可前往到相應行。 + +### 編輯行 + +您可以使用以下快捷鍵迅速編輯行: + +| 功能 | 快捷鍵 | +| ------------ | ------------ | +| 於上方換行(在上方插入一行) | Ctrl + Enter | +| 於下方換行(在下方插入一行) | Ctrl + Shift + Enter | +| 複製一行 | Ctrl + Shift + D | +| 切到上一行(與上一行交換位置) | Ctrl + Shift + Up | +| 切到下一行(與下一行交換位置) | Ctrl + Shift + Down | +| 捲到上一行 | Super + Shift + Up | +| 捲到下一行 | Super + Shift + Down | +| 標記 | Alt + H | +| 取消標記 | Alt + Shift + H | +| 複製一行 | Super + C | +| 剪下一行 | Super + X | +| 合併一行 | Ctrl + J | + +### 開啟/關閉唯讀模式 + +1. 使用文字編輯器打開檔案,單擊右鍵,選擇 **開啟唯讀模式**。 +2. 在唯讀模式下,單擊右鍵,選擇 **關閉唯讀模式**。 + +![read_only](fig/read_only.png) + +![read_only](fig/read_only_02.png) + +### 語音朗讀 + +1. 選取一段文字後,點選右鍵選擇 **語音朗讀**,系統將以語音唸出選取的文字。 + +2. 朗讀過程中,點選朗讀控制項上的關閉按鈕即可結束語音朗讀。 + + > ![notes](../common/notes.svg)說明:當未選擇文字時,右鍵選單中 **語音朗讀** 不可啟動,處置灰狀態。 + +![read_only](fig/reading.png) + +### **語音聽寫** + +1. 在文字編輯區域內,點選滑鼠右鍵選擇 **語音聽寫**,即可透過麥克風輸入語音,轉換的文字將插入到游標所在位置。 +2. 在聽寫模式下,點選聽寫控制項上的關閉按鈕即可結束語音聽寫。 + +![read-only](fig/listen.png) + + +### 列编辑 +在文字編輯器介面,按住鍵盤上的 **Alt** 鍵不放,滑鼠左鍵單擊多列啟動列編輯模式,為多行程式碼同時編輯相同的內容,提高工作效率。 + +![column mode](fig/column mode.png) + +### 顏色標記 + +在文字編輯器介面,滑鼠右鍵選擇 **顏色標記**,在其下拉選單中進行選擇。 + +![color](fig/color_tag.png) + + - **添加標記**:對某一行或某一段文字內容添加顏色標記;有8種顏色按鈕可供選擇。 + + 將游標定在某一行,標記目前所在的行。 + + 選中一段文字內容後,標記選中的文字內容。 + - **標記所有**:將文字內容全部標記或對已選中的文字內容,在全文中標記匹配項;有8種顏色按鈕可供選擇。 + + 將游標定在任意一行,將文字內容全部標記。 + + 選中一段文字內容,在全文中標記匹配項。 + - **清除上次標記**:清除上次標記操作。 + - **清除所有標記**:清除目前所有標記。 + + + +### 書籤管理 + +在文字編輯器設定介面,勾選 **顯示書籤圖標** 後,您可以為任意一行的文字內容添加書籤,將滑鼠遊標移至左側欄任意一行處會顯示 ![icon](../common/bookmark_normal_light.svg),添加成功後該行的書籤圖示會變為藍色填充的圖示 ![bookmarkbig](../common/bookmarkbig_checked_light.svg)。 + +- 添加書籤 + + + 滑鼠左鍵單擊 ![icon](../common/bookmark_normal_light.svg),為該行添加書籤。 + + 滑鼠右鍵單擊 ![icon](../common/bookmark_normal_light.svg),選擇 **添加書籤**,為該行添加一個書籤。 + + 將游標定在文字中任意一行,使用組合鍵 **Ctrl + F2** 為該行添加一個書籤。 + +- 刪除書籤 + + + 滑鼠左鍵單擊已填充顏色的書籤圖示,直接刪除該行書籤。 + + 滑鼠右鍵單擊已填充顏色的書籤圖示,選擇 **清除書籤**,刪除該行書籤。 + + 滑鼠右鍵單擊書籤圖示,選擇 **清除所有書籤**,刪除該文字的全部書籤。 + + >![icon](../common/notes.svg)說明:滑鼠移到左側行號前面才會顯示書籤圖示,移出書籤區域,書籤圖示消失。添加書籤後,該圖示一直顯示。 + + + +### 注釋管理 + +在文字編輯器介面,您可對副檔名為cpp 、java 、py等程式碼類型的檔案進行添加注釋的操作。 + +- 添加注釋 + + 選中一段文字內容,在右鍵選單選擇 **添加注釋**。 + + 選中一段文字內容,使用組合鍵 **Alt + A** 添加注釋。 + +- 取消注釋 + + 選中一段已添加注釋的文字內容,在右鍵選單中選擇 **取消注釋**。 + + 選中一段已添加注釋的文字內容,使用組合鍵 **Alt + Z** 取消注釋。 + + >![notes](../common/notes.svg)說明:支援不同程式碼語言的注釋,具體以實際為主。例如C,C#,Java注釋符號為 //,Python 注釋符號為 #。 + + + +## 主選單 + +在主選單中,您可以 建立新視窗、建立新標籤頁、[尋找文字](#尋找文字)、[取代文字](#取代文字)、儲存檔案、切換視窗主題、查看說明手冊,了解文字編輯器的更多訊息。 + +### 設定 +您可以對基本訊息、快捷鍵和進階訊息進行設定。 + +#### 基本設定 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設定**。 +2. 在基本設定選項,您可以選擇: + - 設定字體樣式,選擇字體樣式和字體大小。 + - 勾選 **文字換行**,在編輯區自動換行。 + - 勾選 **顯示代碼摺疊標誌**,在左側欄顯示![next](../common/next.svg)或者![next](../common/next_down.svg)按鈕,右鍵單擊按鈕選擇摺疊/展開目前層次或所有層次。 + - 勾選 **顯示行號**,在左側欄顯示行號。 + - 勾選**當前行高亮**,游標所在的行突顯顯示。 + - 勾選 **顯示書籤圖標**,在左側欄顯示書籤圖標。 + - 勾選 **顯示空白制符/制表符**,顯示文字中的空白字符和制表符,您也可手動輸入或刪除空白字符和制表符。 + > ![tips](../common/tips.svg)竅門:您還可以使用 **Ctrl + 「+」/ 「-」** 調節文字編輯器的預設字號。使用 **Ctrl + 0** 復原預設字號。 + + + +#### 快捷鍵設定 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設定**,在 **快捷鍵** 選項查看目前快捷鍵。 +2. 選擇一種按鍵映射。 +3. 單擊並重新輸入快捷鍵,可以自訂快捷鍵。 + + > ![notes](../common/notes.svg)說明: 按鍵映射允許您選擇某一種鍵盤快捷鍵。您可以使用標準快捷鍵、Emacs快捷鍵、或自訂快捷鍵,以符合您的使用習慣。 + + +#### 進階設定 + +1. 單擊 ![icon_menu](../common/icon_menu.svg)> **設定**。 +2. 在 **進階設定** 選項,您可以設定: + - 視窗大小:一般、最大或全螢幕。 + - Tab寬度:Tab縮排所占用的空間大小。 + + + +### 主題 + +視窗主題包含亮色主題、暗色主題和系統主題。 + +1. 在文字編輯器介面,單擊![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **主題**,選擇一個主題顏色。 + +### 說明 + +查看說明手冊,進一步了解和使用文字編輯器。 + +1. 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **說明**。 +3. 查看文字編輯器的說明手冊。 + +### 關於 + +1. 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **關於**。 +3. 查看文字編輯器的版本和介紹。 + +### 退出 + +1. 在文字編輯器介面,單擊 ![icon_menu](../common/icon_menu.svg)。 +2. 單擊 **退出**。 \ No newline at end of file