Skip to content

Commit

Permalink
Bugfix importing andaluh-gs library (old link was provided). Improvin…
Browse files Browse the repository at this point in the history
…g docs.
  • Loading branch information
fontanon committed Apr 16, 2021
1 parent a0d7989 commit c52025b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ A side panel add-on for Google Docs (Google Drive) to help you transliterating e
- [Description](#description)
- [Installation](#installation)
- [Usage](#usage)
- [Development](#development)
- [Roadmap](#roadmap)
- [Support](#support)
- [Contributing](#contributing)
Expand Down Expand Up @@ -75,6 +76,12 @@ Have a look at the featured video. Click for fullscreen:

<a href="https://youtu.be/cqScVjWM1EU"><img width="520" alt="andaluh-gs about" src="https://raw.githubusercontent.com/andalugeeks/andaluh-googledocs-addon/main/img/andaluh-googledocs.gif"></a>

## Development

To use a different [andaluh-gs](https://github.com/andalugeeks/andaluh-js/tree/google-apps-script) transcription library version, deploy your own copy on your Google App Script account. Then edit the `appscript.json` file to reference your own version and follow the installation steps from step 1.

Further reference on how to edit the `appscript.json` file here: https://developers.google.com/apps-script/manifest/dependencies

## Roadmap

* Adding more andaluh spelling proposals.
Expand Down
7 changes: 3 additions & 4 deletions src/appsscript.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"dependencies": {
"libraries": [
{
"userSymbol": "Andaluhjs",
"version": "0",
"libraryId": "1XFTMfTaW_Q1M7ZZfCKFbFVJRY7Nc8c4NN5UzAECNzcVtqR-6CM7UaQEX",
"userSymbol": "AndaluhGS",
"libraryId": "1qvvfm1jyjHNT6t_oYJWrhvug8Q1J8tpmNWqLSW0OBe802DxcwsOgMTV_",
"developmentMode": true
}
]
Expand All @@ -21,7 +20,7 @@
],
"addOns": {
"common": {
"name": "Andalûh para Google Drive",
"name": "Andaluh para Google Docs",
"logoUrl": "https://drive.google.com/uc?export=view&id=1myHLFHQHHg6-0kT6zO9dnkr5-x7tyxGS",
"layoutProperties": {
"primaryColor": "#2772ed"
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function insertText(newText) {
* origin and dest languages are the same.
*/

var epa = new Andaluhjs.EPA();
var epa = new AndaluhGS.EPA();

function translateText(text, vaf, vvf) {
return epa.transcript(text, vaf, vvf, true);
Expand Down
2 changes: 1 addition & 1 deletion src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function words(s) {
}

function loop(tests, vaf, vvf, escapeLinks) {
var epa = new Andaluhjs.EPA();
var epa = new AndaluhGS.EPA();

var errors = false;

Expand Down

0 comments on commit c52025b

Please sign in to comment.