-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to encode extended ASCII characters from the editor
- Loading branch information
1 parent
55dcf2f
commit 23d460f
Showing
9 changed files
with
220 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
```{r} | ||
#| include: false | ||
#| eval: true | ||
source('../R/appdown.r') | ||
``` | ||
|
||
# Editing | ||
|
||
When a source file in the loaded in the editor and the editor is selected, the **Edit** section of the ribbon will become enabled. | ||
From here, you can edit the source file in the **Editor** and make use of these options from the ribbon. | ||
|
||
## Basic Operations | ||
|
||
Clipboard operations (e.g., `r keys("Cut")`, `r keys("Copy")`, and `r keys("Paste")`), `r keys("Undo")`, `r keys("Redo")`, and `r keys("Select All")` are all available from this section. | ||
|
||
## Insert | ||
|
||
From the `r keys("Insert")` button, options are available for inserting and converting content within the editor to fix various warnings. | ||
|
||
For example, to fix warnings about strings needing context, place the cursor into the editor in front of a resource loading call (e.g., `_("TABLE")`). | ||
Next, click the `r keys("Insert")` button on the ribbon and select **Translator Comment...**. | ||
Enter a comment that will explain to the translators what "TABLE" means in this context, providing guidance for how they should translate it. | ||
Click `r keys("OK")` and your comment with "TRANSLATORS: " prefixed will be inserted in front of the function call. | ||
("TRANSLATORS: " is the default tag that **gettext** looks for when extracting translator comments.) | ||
|
||
::: {.notesection data-latex=""} | ||
This warning is emitted when the option **Check for ambiguous strings that lack a translator comment** (from the **Source Code** settings) is checked. | ||
::: | ||
|
||
To fix warnings about extended ASCII characters needing to be encoded, select the text in the editor which contains these characters. | ||
Next, click the `r keys("Insert")` button on the ribbon and select **Encode Extended ASCII Characters...**. | ||
You will then be prompted about how the selection will be re-encoded. | ||
Click `r keys("OK")` and the selection will be replaced with the re-encoded content. | ||
|
||
As an example, if you have the string "Błąd" (Polish for "Error") in a source file, some legacy compilers may have difficulty processing it (even if encoded as UTF-8). | ||
By following the aforementioned steps, this will be re-encoded to "B\\U00000142\\U00000105d." | ||
|
||
::: {.notesection data-latex=""} | ||
This warning is emitted when the option **Unencoded extended ASCII characters** (from the **Additional Checks** settings) is checked. | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
|
||
#include "analyze.h" | ||
#include <iostream> | ||
#include <sstream> | ||
|
||
namespace i18n_check | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters