moved docs to other repo
@@ -1,55 +0,0 @@
|
|||||||
#pagebreak()
|
|
||||||
|
|
||||||
#heading(
|
|
||||||
level: 1,
|
|
||||||
outlined: false,
|
|
||||||
numbering: none,
|
|
||||||
"Anotācija",
|
|
||||||
)
|
|
||||||
|
|
||||||
Atmiņas kartītes (angl. flashcards) ir izplatīts veids, kā skolēni,
|
|
||||||
studenti un citi cilvēki, kas mācās vai studē, iegaumē materiālu. To veidošanai,
|
|
||||||
uzturēšanai un izmantošanai izmanto programmatūras risinājumus, taču
|
|
||||||
lielākoties neizmato pilnīgi caurspīdīgu vienkārša teksta formātu. Darbā
|
|
||||||
tiek aprakstīts risinājums, kas izmanto domēna specifisku valodu ar pilnīgu
|
|
||||||
informācijas glabāšanu vienkārša teksta failos.
|
|
||||||
|
|
||||||
#par(
|
|
||||||
first-line-indent: 0cm,
|
|
||||||
[
|
|
||||||
*Atslēgvārdi:* atmiņas kartītes, domēna specifiska valoda, vienkārša
|
|
||||||
teksts, apzīmēšanas valoda.
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
#text(
|
|
||||||
hyphenate: auto,
|
|
||||||
lang: "en",
|
|
||||||
[
|
|
||||||
#pagebreak()
|
|
||||||
#heading(
|
|
||||||
level: 1,
|
|
||||||
outlined: false,
|
|
||||||
numbering: none,
|
|
||||||
"Abstract",
|
|
||||||
)
|
|
||||||
|
|
||||||
Flashcards are a common way for students to students and other studying
|
|
||||||
people memorize the material. To create them, software solutions are
|
|
||||||
used for maintenance and use, however most do not use a fully
|
|
||||||
transparent plain text format. This paper eplores a solution that uses a
|
|
||||||
domain-specific language with a complete is described information
|
|
||||||
storage using plain text files.
|
|
||||||
|
|
||||||
#par(
|
|
||||||
first-line-indent: 0cm,
|
|
||||||
[
|
|
||||||
*Keywords:* memory cards, domain specific language, simple text, markup
|
|
||||||
language.
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
// EN keywords
|
|
||||||
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
Before Width: | Height: | Size: 522 KiB |
|
Before Width: | Height: | Size: 274 KiB |
|
Before Width: | Height: | Size: 369 KiB |
|
Before Width: | Height: | Size: 258 KiB |
|
Before Width: | Height: | Size: 456 KiB |
|
Before Width: | Height: | Size: 341 KiB |
|
Before Width: | Height: | Size: 822 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 781 KiB |
|
Before Width: | Height: | Size: 818 KiB |
|
Before Width: | Height: | Size: 872 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 163 KiB |
@@ -1,205 +0,0 @@
|
|||||||
#import "@preview/i-figured:0.1.0"
|
|
||||||
#import "@preview/big-todo:0.2.0": *
|
|
||||||
#import "@preview/tablex:0.0.6": tablex
|
|
||||||
|
|
||||||
#let indent = 1cm
|
|
||||||
|
|
||||||
#let project(
|
|
||||||
university: "",
|
|
||||||
faculty: "",
|
|
||||||
title: [],
|
|
||||||
authors: (),
|
|
||||||
advisor: "",
|
|
||||||
date: "",
|
|
||||||
body,
|
|
||||||
) = {
|
|
||||||
set document(author: authors)
|
|
||||||
|
|
||||||
set page(
|
|
||||||
margin: (
|
|
||||||
left: 30mm,
|
|
||||||
right: 20mm,
|
|
||||||
top: 20mm,
|
|
||||||
bottom: 20mm,
|
|
||||||
),
|
|
||||||
number-align: center,
|
|
||||||
paper: "a4",
|
|
||||||
)
|
|
||||||
set text(
|
|
||||||
//font: "New Computer Modern",
|
|
||||||
font: "CMU", size: 12pt, hyphenate: auto, lang: "lv", region: "LV",
|
|
||||||
)
|
|
||||||
show raw: set text(font: "New Computer Modern Mono")
|
|
||||||
|
|
||||||
show math.equation: set text(weight: 400)
|
|
||||||
|
|
||||||
// Formatting for regular text
|
|
||||||
set par(
|
|
||||||
justify: true,
|
|
||||||
leading: 1.5em,
|
|
||||||
first-line-indent: indent,
|
|
||||||
)
|
|
||||||
show par: set block(spacing: 1.5em) // Set 1.5em gap between paragraphs
|
|
||||||
show heading: set block(spacing: 1.5em)
|
|
||||||
set terms(separator: [ -- ])
|
|
||||||
|
|
||||||
// Headings
|
|
||||||
set heading(numbering: "1.1.")
|
|
||||||
show heading: it => {
|
|
||||||
if it.level == 1 {
|
|
||||||
pagebreak(weak: true) // does not break ToC anymore (i think)
|
|
||||||
text(
|
|
||||||
14pt,
|
|
||||||
align(
|
|
||||||
center,
|
|
||||||
upper(it),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
it
|
|
||||||
}
|
|
||||||
"" // added
|
|
||||||
v(-indent) // added
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Title page config start */
|
|
||||||
align(
|
|
||||||
center,
|
|
||||||
upper(
|
|
||||||
text(
|
|
||||||
size: 16pt,
|
|
||||||
[
|
|
||||||
#university\
|
|
||||||
#faculty
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
v(1fr)
|
|
||||||
|
|
||||||
align(
|
|
||||||
center,
|
|
||||||
text(
|
|
||||||
20pt,
|
|
||||||
weight: "bold",
|
|
||||||
title,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
v(1fr)
|
|
||||||
|
|
||||||
// Author information
|
|
||||||
align(
|
|
||||||
right,
|
|
||||||
[
|
|
||||||
#if authors.len() > 1 {
|
|
||||||
text(
|
|
||||||
weight: "bold",
|
|
||||||
"Darba autori:",
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
text(
|
|
||||||
weight: "bold",
|
|
||||||
"Darba autors:",
|
|
||||||
)
|
|
||||||
}\
|
|
||||||
#authors.join("\n")
|
|
||||||
|
|
||||||
#v(2em)
|
|
||||||
|
|
||||||
#if advisor != "" {
|
|
||||||
text(
|
|
||||||
weight: "bold",
|
|
||||||
"Darba vadītājs:\n",
|
|
||||||
)
|
|
||||||
advisor
|
|
||||||
}
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
v(0.5fr)
|
|
||||||
|
|
||||||
|
|
||||||
align(
|
|
||||||
center,
|
|
||||||
upper(
|
|
||||||
text(date),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
/* Title page config end */
|
|
||||||
|
|
||||||
// WARNING: removove before sending
|
|
||||||
// todo_outline
|
|
||||||
|
|
||||||
/* --- Figure/Table conf start --- */
|
|
||||||
show heading: i-figured.reset-counters
|
|
||||||
show figure: i-figured.show-figure.with(numbering: "1.1.")
|
|
||||||
|
|
||||||
show figure.where(kind: "i-figured-table"): set block(breakable: true)
|
|
||||||
show figure.where(kind: "i-figured-table"): set figure.caption(position: top)
|
|
||||||
|
|
||||||
show figure: set par(justify: false) // disable justify for figures (tables)
|
|
||||||
|
|
||||||
show figure.caption: it => {
|
|
||||||
if it.kind == "i-figured-table" {
|
|
||||||
align(
|
|
||||||
end,
|
|
||||||
emph(it.counter.display(it.numbering) + " tabula ") + text(
|
|
||||||
weight: "bold",
|
|
||||||
it.body,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
} else if it.kind == "i-figured-image" {
|
|
||||||
align(
|
|
||||||
start,
|
|
||||||
emph(it.counter.display(it.numbering) + " att. ") + text(
|
|
||||||
weight: "bold",
|
|
||||||
it.body,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
it
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
set ref(supplement: it => { }) // disable default reference suppliments
|
|
||||||
/* --- Figure/Table conf end --- */
|
|
||||||
|
|
||||||
set list(marker: (
|
|
||||||
[•],
|
|
||||||
[--],
|
|
||||||
[\*],
|
|
||||||
[·],
|
|
||||||
))
|
|
||||||
set enum(numbering: "1aiA)") // TODO: make the same style as LaTeX: 1. | (a) | i. | A.
|
|
||||||
|
|
||||||
// Abstract
|
|
||||||
include "abstract.typst"
|
|
||||||
|
|
||||||
/* ToC config start */
|
|
||||||
// Uppercase 1st level headings in ToC
|
|
||||||
show outline.entry.where(level: 1): it => {
|
|
||||||
upper(it)
|
|
||||||
}
|
|
||||||
|
|
||||||
pagebreak()
|
|
||||||
outline(
|
|
||||||
depth: 3,
|
|
||||||
indent: 1cm,
|
|
||||||
title: text(
|
|
||||||
size: 14pt,
|
|
||||||
"SATURS",
|
|
||||||
),
|
|
||||||
)
|
|
||||||
/* ToC config end */
|
|
||||||
|
|
||||||
// Start page numering
|
|
||||||
set page(
|
|
||||||
numbering: "1",
|
|
||||||
number-align: center,
|
|
||||||
)
|
|
||||||
|
|
||||||
// Main bdy.
|
|
||||||
body
|
|
||||||
}
|
|
||||||
2358
docs/main.typst
@@ -1,23 +0,0 @@
|
|||||||
Labvakar!
|
|
||||||
|
|
||||||
Funkcionālās prasības ievilkās, jo nevarēju koncentrēties uz tām, jo vēlējos ķerties klāt pie programmēšanas, jo tas būtu sarežģītākais.
|
|
||||||
|
|
||||||
Realizēju iedomāto pamata funkcionalitāti (testus vēl neizstrādāju). Pašlaik repozitorijā ir 2728 koda rindiņas. Pieņemsim, ka testi aizņems vismaz 400 rindiņas.
|
|
||||||
Pielikumā nosūtu dokumentu ar ievadu, vispārējo aprakstu un PPS. Sākšu veidot PPA ar saskarnes aprakstu un diagrammām.
|
|
||||||
|
|
||||||
- Dažās funkcijās kartītes (saraksts ar objektiem) iet kopā ar datumu un laiku (simbolu virkni). Vai var uzskatīt šos datus kā "kartīšu datus" vai labāk tos atdalīt DPD kā "kartīšu dati" un "metadati"?
|
|
||||||
|
|
||||||
- Dzirdēju no Ārijas info lekcijā, ka ar tādām tabulām (izvade, apraksts, utt.), piemēram, funckiju tabulām var rasties problēmas ar plagiātu. Vai manu tabulu detalizācija ir pietiekama, lai tādas problēmas nebūtu?
|
|
||||||
|
|
||||||
- Saskarni veidoju, izmantojot angļu valodu. Vai saskarni būtu labāk pārtulkot?
|
|
||||||
|
|
||||||
Gaidīšu Jūsu ieteikumus par iesūtīto dokumentu.
|
|
||||||
|
|
||||||
|
|
||||||
Cieņā
|
|
||||||
Jorens Štekeļs
|
|
||||||
|
|
||||||
|
|
||||||
- Pieteikuma nosaukumā pieļāvu kļūdu: korektāk būtu "specifiskas" nevis "specifiskās";
|
|
||||||
- TODO note about the function that doesnt have inputs from user
|
|
||||||
- TODO order the book
|
|
||||||
212
docs/utils.typst
@@ -1,212 +0,0 @@
|
|||||||
#import "@preview/tablex:0.0.6": tablex
|
|
||||||
#import "@preview/big-todo:0.2.0": todo as TODO
|
|
||||||
|
|
||||||
#let custom-block(
|
|
||||||
item,
|
|
||||||
) = {
|
|
||||||
set align(start)
|
|
||||||
block(
|
|
||||||
inset: 8pt,
|
|
||||||
stroke: black,
|
|
||||||
width: 100%,
|
|
||||||
spacing: 0pt,
|
|
||||||
breakable: true,
|
|
||||||
item,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
#let longtable(
|
|
||||||
title: "",
|
|
||||||
titles: (),
|
|
||||||
caption: "",
|
|
||||||
..items,
|
|
||||||
) = {
|
|
||||||
figure(
|
|
||||||
gap: 1.5em,
|
|
||||||
kind: table,
|
|
||||||
caption: if caption != "" {
|
|
||||||
caption
|
|
||||||
} else {
|
|
||||||
if titles.len() == 0 {
|
|
||||||
title
|
|
||||||
} else {
|
|
||||||
titles.first()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
[
|
|
||||||
// set par(first-line-indent: 0pt)
|
|
||||||
#if titles.len() == 0 {
|
|
||||||
custom-block(
|
|
||||||
text(
|
|
||||||
weight: "bold",
|
|
||||||
title,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
#for i in range(
|
|
||||||
items.pos().len(),
|
|
||||||
) {
|
|
||||||
if titles.len() > 0 {
|
|
||||||
custom-block(
|
|
||||||
text(
|
|
||||||
weight: "bold",
|
|
||||||
titles.at(i),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
custom-block(
|
|
||||||
items.pos().at(i),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
],
|
|
||||||
)
|
|
||||||
// linebreak()
|
|
||||||
}
|
|
||||||
|
|
||||||
#let procedure-table(
|
|
||||||
caption: "",
|
|
||||||
..items,
|
|
||||||
) = {
|
|
||||||
if caption == "" {
|
|
||||||
caption = items.pos().first()
|
|
||||||
}
|
|
||||||
longtable(
|
|
||||||
titles: (
|
|
||||||
"Procedūras nosaukums",
|
|
||||||
"Procedūras identifikators",
|
|
||||||
"Procedūras apraksts",
|
|
||||||
"Ievade",
|
|
||||||
"Apstrāde",
|
|
||||||
"Izvade",
|
|
||||||
),
|
|
||||||
caption: caption,
|
|
||||||
..items,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
#let format-table(
|
|
||||||
caption: "",
|
|
||||||
..items,
|
|
||||||
) = {
|
|
||||||
if caption == "" {
|
|
||||||
caption = items.pos().first()
|
|
||||||
}
|
|
||||||
longtable(
|
|
||||||
titles: (
|
|
||||||
"Formāta nosaukums",
|
|
||||||
"Formāta identifikators",
|
|
||||||
"Apraksts",
|
|
||||||
"Piemērs",
|
|
||||||
),
|
|
||||||
caption: caption,
|
|
||||||
..items,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
#let io-table(
|
|
||||||
caption: "",
|
|
||||||
..items,
|
|
||||||
) = {
|
|
||||||
if caption == "" {
|
|
||||||
caption = items.pos().first()
|
|
||||||
}
|
|
||||||
|
|
||||||
longtable(
|
|
||||||
titles: (
|
|
||||||
"Ievades/izvades vērtības nosaukums",
|
|
||||||
"Identifikators",
|
|
||||||
"Apraksts",
|
|
||||||
),
|
|
||||||
caption: caption,
|
|
||||||
..items,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
#let function-table(
|
|
||||||
caption: "",
|
|
||||||
..items,
|
|
||||||
) = {
|
|
||||||
if caption == "" {
|
|
||||||
caption = items.pos().first()
|
|
||||||
}
|
|
||||||
longtable(
|
|
||||||
titles: (
|
|
||||||
"Funkcijas nosaukums",
|
|
||||||
"Funkcijas identifikators",
|
|
||||||
"Apraksts",
|
|
||||||
"Ievade",
|
|
||||||
"Apstrāde",
|
|
||||||
"Izvade",
|
|
||||||
"Paziņojumi",
|
|
||||||
),
|
|
||||||
caption: caption,
|
|
||||||
..items,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
Manuālie integrācijas testi tiek veikti, izmantojot lietotāju saskarni. Testi
|
|
||||||
ir dokumentēti tabulās norādot testa gadījuma nosaukumu, pirmsnosacījumus,
|
|
||||||
aprakstu, ievadi, izpildi, sagaidāmo rezultātu.
|
|
||||||
|
|
||||||
#let testcase-table(
|
|
||||||
caption: "",
|
|
||||||
..items,
|
|
||||||
) = {
|
|
||||||
if caption == "" {
|
|
||||||
caption = items.pos().first()
|
|
||||||
}
|
|
||||||
longtable(
|
|
||||||
titles: (
|
|
||||||
"Testa gadījuma nosaukums",
|
|
||||||
"Testa gadījuma identifikators",
|
|
||||||
"Pirmsnosacījumi",
|
|
||||||
"Apraksts",
|
|
||||||
"Ievade",
|
|
||||||
"Izpilde",
|
|
||||||
"Sagaidāmais rezultāts",
|
|
||||||
"Rezultāts",
|
|
||||||
),
|
|
||||||
caption: caption,
|
|
||||||
..items,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
#let todo(
|
|
||||||
..body,
|
|
||||||
) = {
|
|
||||||
TODO(
|
|
||||||
..body,
|
|
||||||
inline: true,
|
|
||||||
big_text: 14pt,
|
|
||||||
small_text: 12pt,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
#let hyperlink-source(
|
|
||||||
author,
|
|
||||||
title,
|
|
||||||
link_str,
|
|
||||||
date,
|
|
||||||
) = {
|
|
||||||
let author_part = ""
|
|
||||||
if author != "" {
|
|
||||||
author_part = [#author. ]
|
|
||||||
}
|
|
||||||
|
|
||||||
let title_part = ""
|
|
||||||
if title != "" {
|
|
||||||
title_part = [#title. ]
|
|
||||||
}
|
|
||||||
|
|
||||||
let link_part = ""
|
|
||||||
if link_str != "" {
|
|
||||||
link_part = [Pieejams: #link(link_str). ]
|
|
||||||
}
|
|
||||||
|
|
||||||
let date_part = ""
|
|
||||||
if date != none {
|
|
||||||
date_part = [Aplūkots #date.display("[day].[month].[year]"). ]
|
|
||||||
}
|
|
||||||
|
|
||||||
[#author_part#title_part#link_part#date_part]
|
|
||||||
}
|
|
||||||