fdroiddata/metadata/com.example.root.analyticaltranslator.yml
Hans-Christoph Steiner cf4e8a40ff convert all MediaWiki links to HTML links
```python
import yaml, glob, re, os
from fdroidserver import metadata

pat = re.compile(r'\[(https?://[^ \]]+)\s+([^\]]+)\]')

for f in glob.glob('metadata/*.yml'):
    with open(f) as fp:
        data = yaml.load(fp)
    description = data.get('Description', '')
    for m in pat.finditer(data.get('Description', '')):
        link = m.group(1)
        text = m.group(2)
        print(f, link, text, flush=True)
        description = description.replace(m.group(), '<a href="%s">%s</a>' % (link, text))
    data['Description'] = description
    app = metadata.App(data)
    metadata.write_metadata(f, app)
```

```
sed -i 's,^      - true,      - yes,' metadata/*.yml
sed -i 's,^      - false,      - no,' metadata/*.yml
```

closes fdroid-website#510
2020-12-09 19:10:44 +01:00

66 lines
1.6 KiB
YAML

Categories:
- Science & Education
License: GPL-3.0-only
SourceCode: https://archive.softwareheritage.org/browse/origin/https://github.com/xpheres/AndroidAnalyticalTranslator/directory/
Bitcoin: 15WVb3LZWCsdZGjkNFBuELwt3U4zpnSgwa
AutoName: Analytical Translator
Description: |-
Front-end for the natural language translator project
<a href="https://github.com/xpheres/analyticaltranslator">"Analytical Translator"</a>, a
translator that analyzes sentences, corrects syntax and grammar and reports and
explains mistakes. A pedagogical translator for language learners that detects
and corrects gender,conjugation and declination discrepancies as well as some
orthographic mistakes.
Only translation from German to Spanish is already implemented (English is being
implemented right now).
Builds:
- versionName: '0.01'
versionCode: 1
commit: 9622285934dbf9fd4497618c43999d673f1ea4e7
subdir: app
gradle:
- yes
- versionName: '0.02'
versionCode: 2
commit: v0.02
subdir: app
gradle:
- yes
- versionName: '0.03'
versionCode: 3
commit: v0.03
subdir: app
gradle:
- yes
- versionName: '0.04'
versionCode: 4
disable: mistagged
commit: v0.04
subdir: app
gradle:
- yes
- versionName: '0.05'
versionCode: 5
commit: v0.05
subdir: app
gradle:
- yes
- versionName: '0.06'
versionCode: 6
commit: v.0.06
subdir: app
gradle:
- yes
AutoUpdateMode: None
UpdateCheckMode: None
CurrentVersion: '0.06'
CurrentVersionCode: 6