fdroiddata/metadata/com.github.gianlucanitti.expreval.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

56 lines
1.8 KiB
YAML

Categories:
- Science & Education
License: MIT
SourceCode: https://github.com/gianluca-nitti/android-expr-eval
IssueTracker: https://github.com/gianluca-nitti/android-expr-eval/issues
Changelog: https://github.com/gianluca-nitti/android-expr-eval/releases
AutoName: ExprEval
Description: |-
Application that solves math expressions. Main features:
* Supports variables (e.g. you can do "a=5", then "a+1" and you get 6)
* Built-in basic function (like logarithms and trigonometry)
* Custom functions can be defined (e.g. "log(x,b)=log(x)/log(b)", then log(32,2) will print 5)
* Variables and functions can be edited both from the prompt and dialogs
* Can print parsing and evaluation steps.
* (Android 6.0+ only) can evaluate expressions from text selection in any application (ACTION_PROCESS_TEXT intent).
* Fully localizable - actually includes English and Italian, you can contribute yor translation with a pull request on GitHub.
Changelog:
* 1.2: updated build tools to fix crash on some Android versions.
* 1.1: added localization support and Italian translation; added ACTION_PROCESS_TEXT intent filter.
* 1.0: Initial version.
This application is based on <a href="https://github.com/gianluca-nitti/java-expr-eval">this</a> open source (MIT licensed) library.
RepoType: git
Repo: https://github.com/gianluca-nitti/android-expr-eval.git
Builds:
- versionName: '1.0'
versionCode: 1
commit: v1.0
subdir: app
gradle:
- yes
- versionName: '1.1'
versionCode: 2
commit: v1.1
subdir: app
gradle:
- yes
- versionName: '1.2'
versionCode: 3
commit: v1.2
subdir: app
gradle:
- yes
AutoUpdateMode: None
UpdateCheckMode: Tags
CurrentVersion: '1.2'
CurrentVersionCode: 3