Skip to content
Snippets Groups Projects
Commit deb1d0c3 authored by Philipp Stadler's avatar Philipp Stadler
Browse files

feat: add simple vocabulary APKG with just one card

parent 062ef19c
No related branches found
No related tags found
No related merge requests found
# Brand spanking new Anki Pack
Hi, do you want to build a new Anki pack? You can start with this repository!
Hi, do you want to build your own vocabulary with Anki and want to take
advantage of a feature-rich template without writing any code?
If you want to learn, not create new content, see the user guide in
[English](https://gitlab.phaidra.org/kartenaale/getting-started-with-anki/-/blob/main/GUIDE.md)
or
[German](https://gitlab.phaidra.org/kartenaale/getting-started-with-anki/-/blob/main/ANLEITUNG.md).
Download this APKG with just one card and then add your own, right within Anki.
## First-time setup for a new project
Create a
[new project](https://gitlab.phaidra.org/projects/new?namespace_id=2286#import_project)
in the _Anki Packs_ namespace and choose _Repository by URL_ with this repo:
```
https://gitlab.phaidra.org/kartenaale/templates/anki-pack.git
```
This step will also clone this README. You can change it later to remove this
section and tell your users something about your pack instead.
Next, enable Gitlab CI for your project. With this feature, your new content
will produce Anki packages on Merge Requests and on the main branch. To enable,
open _Settings_ in the new Gitlab project and expand
_Visibility, project features, permissions_. _CI/CD_ under _Repository_ should
be _enabled_. Customize Merge Requests and other settings to your liking (
_Pipelines must succeed_ is highly recommended).
*Everything below this point is not starter-project-specific, you may want to keep it*
The template used in the package is much easier to use than the templates used
for the other packages, where you need to fill in more fields to get all the
functionality.
## Importing the pack to your phone or PC
Open _Deployments | Releases_ on the left, then click _Browse all APKGS…_ on
......
content_version: 1.0.0
templates:
- bijective
content:
- import_csv:
content_version: 2024-06-08 18:23:00+00:00
note_type: Bijection
file_patterns:
- 'content.csv'
delimiter: ';'
deck_name_pattern: 'Tapir geography'
fields_mapping:
- guid
- A
- B
fields_static: {}
tags: []
resource_paths: []
7856975905780;Continent: Europe, Australia, Antarctica;Species: none
5423654674576;Continent: Asia;Species: Tapirus indicus
content_version: 1.0.0
templates:
- bijective
content:
- import_images:
content_version: 2024-02-22 19:00:00+00:00
note_type: Bijection
deck_name_pattern: 'Colors'
fields_mapping:
A: 'The color {{from_basename}}'
B: '{{image}}'
resource_paths: []
content/Bijection-from-Images/red.png

546 B

123412354152;How many tapir species live in the wild in Asia?;1
content_version: 1.0.0
templates:
- molaoshi
content:
- import_csv:
content_version: 2024-01-19 19:00:00+00:00
note_type: Vokabeln
file_patterns:
- '*.txt'
delimiter: "\t"
# Not needed because the CSV contains the deck name
deck_name_pattern: 'UNUSED'
fields_mapping:
- guid
# ignoriere den Kartentyp
- ''
# Dritte Spalte ist Deckname
- deck
- Deutsch
- 简体字
fields_static:
Schreiben (简体字) anlegen: 'true'
# Mehr optionale Kartentypen aktivieren:
# Hören anlegen: 'true'
# Schreiben (繁體字) anlegen: 'true'
# Radikal finden anlegen: 'true'
# Radikal finden (繁體字) anlegen: 'true'
# Lesen (简体字) anlegen: true
# Lesen (繁體字) anlegen: 'true'
# Lesen (Pīnyīn) anlegen: 'true'
tags: []
resource_paths: []
#separator:tab
#html:true
#guid column:1
#notetype column:2
#deck column:3
#tags column:6
sA:>|UEhWR Basic Chinesisch::Teil 1 Tapir 貘
fVVAK}&Gs~ Basic Chinesisch::Teil 1 gut 好
# Vocabulary from Anki
This example builds Vocabulary cards from simple Front/Back cards that were
exported from Anki.
To generate the .txt file, click the wheel when hovering the root of thr deck
you want to export and hit _Export…_ and select _Notes in Plain Text (.txt)_ as
the format. Check everything, e.g. the deck name and unique identifier.
See [.apkg-spec.yaml](.apkg-spec.yaml) for an example of how to handle such a
file.
## Images
If you use images, put them into a directory and add that to the resource path.
See for example
[sinology-1](https://gitlab.phaidra.org/kartenaale/packs/sinology-1/-/blob/main/content/Einf%C3%BChrung-in-die-politische-Geschichte-Chinas/.apkg-spec.yaml)
as an example of how to do this.
content_version: 1.0.0
templates:
- facts
- vocabsimple
content:
- import_csv:
content_version: 2024-06-08 18:23:00+00:00
note_type: Facts
content_version: 2024-01-19 19:00:00+00:00
note_type: Vocab simple
file_patterns:
- '*.csv'
delimiter: ';'
deck_name_pattern: 'Tapir facts'
delimiter: ","
deck_name_pattern: 'My Chinese Vocabulary'
fields_mapping:
- guid
- Front
- Back
- Deutsch
- 简体字
fields_static: {}
tags: []
......
245738aadsfaasdfaswe,tapir,貘
{
"version": "1.0.0-starter9"
"version": "1.0.0"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment