Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 6 additions & 18 deletions .github/workflows/converter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ name: Convert
on:
push:
paths:
- 'unit-1/**/*.md'
- 'unit-2/**/*.md'
- 'unit-3/**/*.md'
- 'manuscript/*.md'

jobs:
convert:
Expand All @@ -18,27 +16,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Pandoc, LaTeX, and LibreOffice
- name: Set up Pandoc
run: |
sudo apt-get update
sudo apt-get install -y pandoc libreoffice fonts-freefont-ttf
sudo apt-get install -y pandoc

- name: Convert Markdown files
run: |
mkdir -p converted
for folder in unit-1 unit-2 unit-3; do
[ -d "$folder" ] || continue
find "$folder" -name '*.md' | while read mdfile; do
base=$(basename "$mdfile" .md)
dir=$(dirname "$mdfile" | sed 's|/|_|g')
out="converted/${dir}_${base}"
# Convert to DOCX and EPUB
pandoc "$mdfile" -o "${out}.docx" --refrence-doc=.pandoc/template.docx || echo "DOCX failed for $mdfile"
pandoc "$mdfile" -o "${out}.epub" || echo "EPUB failed for $mdfile"
# Convert DOCX to PDF using LibreOffice
libreoffice --headless --convert-to pdf --outdir converted "${out}.docx" || echo "PDF failed for $mdfile"
done
done
pandoc -d config_pdf.yaml manuscript/*.md -o converted/manuscript.pdf
pandoc -d config_docx.yaml manuscript/*.md -o converted/manuscript.docx
pandoc -d config_epub.yaml manuscript/*.md -o converted/manuscript.epub

- name: Create Pull Request with converted files
uses: peter-evans/create-pull-request@v6
Expand Down
19 changes: 19 additions & 0 deletions .pandoc/config_docx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# docs https://pandoc.org/MANUAL.html#default-files
input-files:
output-file: output/manuscript.docx
resource-path: ["manuscript"] # needed for images linked in .md
from: markdown
file-scope: false # Parse each file individually before combining for multifile documents. This will allow footnotes in different files with the same identifiers to work as expected. If this option is set, footnotes and links will not work across files.
to: docx
standalone: true
# data-dir: # A reference.odt, reference.docx, epub.css, templates, slidy, slideous, or s5 directory placed in this directory will override pandoc’s normal defaults.
# abbreviations: # Specifies a custom abbreviations file, with abbreviations one to a line.
top-level-division: chapter # part, chapter, section, or default:
cite-method: citeproc # citeproc, natbib, or biblatex
reference-location: block # block, section, or document
highlight-style: pygments
reference-doc: "assets/styles/docx_style.docx"

# log
verbosity: WARNING # ERROR, WARNING, or INFO
#log-file: log.json
22 changes: 22 additions & 0 deletions .pandoc/config_epub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# docs https://pandoc.org/MANUAL.html#default-files
input-files:
output-file: output/manuscript.epub
resource-path: ["manuscript"] # needed for images linked in .md
from: markdown
file-scope: false # Parse each file individually before combining for multifile documents. This will allow footnotes in different files with the same identifiers to work as expected. If this option is set, footnotes and links will not work across files.
to: epub
standalone: true
# data-dir: # A reference.odt, reference.docx, epub.css, templates, slidy, slideous, or s5 directory placed in this directory will override pandoc’s normal defaults.
# abbreviations: # Specifies a custom abbreviations file, with abbreviations one to a line.
highlight-style: pygments
#epub-subdirectory: EPUB
#epub-metadata: meta.xml
#epub-fonts:
#- foobar.otf
epub-chapter-level: 1
epub-cover-image: "manuscript/img/cover.jpg"
css: ["assets/styles/epub_style.css"]

# log
verbosity: WARNING # ERROR, WARNING, or INFO
#log-file: log.json
16 changes: 16 additions & 0 deletions .pandoc/config_pdf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# docs https://pandoc.org/MANUAL.html#default-files
input-files:
output-file: output/manuscript.pdf
resource-path: ["manuscript"] # needed for images linked in .md
from: markdown
file-scope: false # Parse each file individually before combining for multifile documents. This will allow footnotes in different files with the same identifiers to work as expected. If this option is set, footnotes and links will not work across files.
to: pdf
standalone: true
pdf-engine: xelatex
# data-dir: # A reference.odt, reference.docx, epub.css, templates, slidy, slideous, or s5 directory placed in this directory will override pandoc’s normal defaults.
# abbreviations: # Specifies a custom abbreviations file, with abbreviations one to a line.
top-level-division: chapter # default | section | chapter | part

# log
verbosity: WARNING # ERROR, WARNING, or INFO
#log-file: log.json
3 changes: 1 addition & 2 deletions README.ar.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@
<a><img src="https://img.shields.io/github/repo-size/Mouadhbendjedidi/Hisgeo-terminology?colorA=363a4f&colorB=f9e2af&style=for-the-badge&logo=databricks&logoColor=f9e2af"></a>
<a href="https://github.com/Mouadhbendjedidi/Hisgeo-terminology/issues"><img src="https://img.shields.io/github/issues/Mouadhbendjedidi/Hisgeo-terminology?colorA=363a4f&colorB=cba6f7&style=for-the-badge&logo=hoppscotch&logoColor=cba6f7"></a>
<a href="https://github.com/Mouadhbendjedidi/Hisgeo-terminology/contributors"><img src="https://img.shields.io/github/contributors/Mouadhbendjedidi/Hisgeo-terminology?colorA=363a4f&colorB=a6e3a1&style=for-the-badge&logo=starship&logoColor=a6e3a1"></a>
<a href="https://conventionalcommits.org"><img src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-blue?style=for-the-badge&logo=conventionalcommits&logoColor=white&labelColor=363a4f&color=f38ba8"></a>
</p>


🎯 مرحباً بك في طريقتك الجديدة والممتعة لمراجعة مصطلحات التاريخ والجغرافيا!

هذا المشروع مخصّص لتلاميذ السنة الثالثة ثانوي في الجزائر الذين يريدون أن يراجعوا بذكاء ويقوّوا ذاكرتهم بأسلوب سهل، فعّال وممتع يخليك تدي النقطة الكاملة في جزء المصطلحات لي تقدر على الأغلب 10 نقاط 🔥!!

📘 "الذاكرة الجزائر – باش ما تزعفش نهار النتائج!"
📘 "ذاكرة الجزائر – باش ما تزعفش نهار النتائج!"

---

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<a><img src="https://img.shields.io/github/repo-size/Mouadhbendjedidi/Hisgeo-terminology?colorA=363a4f&colorB=f9e2af&style=for-the-badge&logo=databricks&logoColor=f9e2af"></a>
<a href="https://github.com/Mouadhbendjedidi/Hisgeo-terminology/issues"><img src="https://img.shields.io/github/issues/Mouadhbendjedidi/Hisgeo-terminology?colorA=363a4f&colorB=cba6f7&style=for-the-badge&logo=hoppscotch&logoColor=cba6f7"></a>
<a href="https://github.com/Mouadhbendjedidi/Hisgeo-terminology/contributors"><img src="https://img.shields.io/github/contributors/Mouadhbendjedidi/Hisgeo-terminology?colorA=363a4f&colorB=a6e3a1&style=for-the-badge&logo=starship&logoColor=a6e3a1"></a>
<a href="https://conventionalcommits.org"><img src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-blue?style=for-the-badge&logo=conventionalcommits&logoColor=white&labelColor=363a4f&color=f38ba8"></a>
</p>

🎯 Welcome to a fun, effective, and organized way to study History and Geography terminology!
Expand Down
Binary file added assets/styles/docx_style.docx
Binary file not shown.
56 changes: 56 additions & 0 deletions assets/styles/epub2_style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
html {
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}

body {
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", serif;
margin: auto;
text-align: justify;
font-size: 16px;
line-height: 1.7;
}

h1 { text-align: left; }
h2 { text-align: left; }
h3 { text-align: left; }
h4 { text-align: left; }
h5 { text-align: left; }
h6 { text-align: left; }

h1.title {
margin-top: 0;
text-align: center;
}

p.author {
text-align: center;
}

ol.toc {
padding: 0;
margin: 1em 0;
padding: 0 0 0 2em;
}

ul.toc ul, ol.toc ol {
margin: .3em 0;
}

li { margin: 0; padding: 0 5px; }

code {
font-family: monospace;
background-color: rgb(247, 247, 247);
}

pre {
font-family: monospace;;
padding: 16px;
overflow: auto;
font-size: 80%;
line-height: 1.45;
border-radius: 3px;
background-color: rgb(247, 247, 247);
}
64 changes: 64 additions & 0 deletions assets/styles/epub3_style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
@font-face {
font-family: OpenSans;
font-style: normal;
font-weight: normal;
src:url("OpenSans-Regular.ttf");
}

@font-face {
font-family: OpenSans;
font-style: normal;
font-weight: bold;
src:url("OpenSans-Bold.ttf");
}

@font-face {
font-family: OpenSans;
font-style: normal;
font-weight: lighter;
src:url("OpenSans-Light.ttf");
}

@font-face {
font-family: Oswald;
font-style: normal;
font-weight: normal;
src:url("Oswald-Regular.ttf");
}

@font-face {
font-family: Oswald;
font-style: normal;
font-weight: bold;
src:url("Oswald-Bold.ttf");
}

@font-face {
font-family: Oswald;
font-style: normal;
font-weight: lighter;
src:url("Oswald-Light.ttf");
}

body {
margin: 1%;
text-align: justify;
font-size: small;
font-family: OpenSans;
line-height: 1.75;
}
code { font-family: monospace; }
h1 { text-align: left; color: #333; }
h2 { text-align: left; color: #555; }
h3 { text-align: left; }
h4 { text-align: left; }
h5 { text-align: left; }
h6 { text-align: left; }
h1, h2, h3, h4, h5, h6 {
font-family: Oswald;
}
h1.title { }
h2.author { }
h3.date { }
ol.toc { padding: 0; margin-left: 1em; }
ol.toc li { list-style-type: none; margin: 0; padding: 0; }
50 changes: 50 additions & 0 deletions assets/styles/epub_style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
body {
margin: 5%;
text-align: justify;
font-size: medium;
font-family: Georgia, Times, "Times New Roman", serif;
}

code {
font-family: monospace;
}

h1,
h2,
h3,
h4,
h5,
h6 {
text-align: left;
}

ol.toc {
padding: 0;
margin-left: 1em;
}

ol.toc li {
list-style-type: none;
margin: 0;
padding: 0;
}

a.footnote-ref {
vertical-align: super;
}

p {
padding: 0;
margin: 0;
text-indent: 1em;
}

blockquote {
margin-left: 3em;
margin-right: 3em;
}

blockquote > p {
text-indent: 0;
margin-bottom: 1em;
}
Binary file removed converted/unit-1_geography.docx
Binary file not shown.
Binary file removed converted/unit-1_geography.epub
Binary file not shown.
Binary file removed converted/unit-1_geography.pdf
Binary file not shown.
Binary file removed converted/unit-1_history-characters.docx
Binary file not shown.
Binary file removed converted/unit-1_history-characters.epub
Binary file not shown.
Binary file removed converted/unit-1_history-characters.pdf
Binary file not shown.
Binary file removed converted/unit-1_history-dates.docx
Binary file not shown.
Binary file removed converted/unit-1_history-dates.epub
Binary file not shown.
Binary file removed converted/unit-1_history-dates.pdf
Binary file not shown.
Binary file removed converted/unit-1_history.docx
Binary file not shown.
Binary file removed converted/unit-1_history.epub
Binary file not shown.
Binary file removed converted/unit-1_history.pdf
Binary file not shown.
Binary file removed converted/unit-2_geography.docx
Binary file not shown.
Binary file removed converted/unit-2_geography.epub
Binary file not shown.
Binary file removed converted/unit-2_geography.pdf
Binary file not shown.
Binary file removed converted/unit-2_history-characters.docx
Binary file not shown.
Binary file removed converted/unit-2_history-characters.epub
Binary file not shown.
Binary file removed converted/unit-2_history-characters.pdf
Binary file not shown.
Binary file removed converted/unit-2_history-dates.docx
Binary file not shown.
Binary file removed converted/unit-2_history-dates.epub
Binary file not shown.
Binary file removed converted/unit-2_history-dates.pdf
Binary file not shown.
Binary file removed converted/unit-2_history.docx
Binary file not shown.
Binary file removed converted/unit-2_history.epub
Binary file not shown.
Binary file removed converted/unit-2_history.pdf
Binary file not shown.
Binary file removed converted/unit-3_geography.docx
Binary file not shown.
Binary file removed converted/unit-3_geography.epub
Binary file not shown.
Binary file removed converted/unit-3_geography.pdf
Binary file not shown.
Binary file removed converted/unit-3_history-characters.docx
Binary file not shown.
Binary file removed converted/unit-3_history-characters.epub
Binary file not shown.
Binary file removed converted/unit-3_history-characters.pdf
Binary file not shown.
Binary file removed converted/unit-3_history-dates.docx
Binary file not shown.
Binary file removed converted/unit-3_history-dates.epub
Binary file not shown.
Binary file removed converted/unit-3_history-dates.pdf
Binary file not shown.
Binary file removed converted/unit-3_history.docx
Binary file not shown.
Binary file removed converted/unit-3_history.epub
Binary file not shown.
Binary file removed converted/unit-3_history.pdf
Binary file not shown.
31 changes: 31 additions & 0 deletions manuscript/000_metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# METADATA
lang: ar-SA # like en, en-UK, en-US, fr, it, it-IT, ...
title: "مصطلحات التاريخ والجغرافيا سنة 3 ثانوي"
subtitle: "طريقة بسيطة لحفظ مصطلحات"
subject: "مع فريق ذاكرة الجزائر"
author: "Mouadh Bendjedidi"
creator:
- role: co-author
text: Dearest Collaborator
date: 05-07-2025
keywords: "history, geography, terms, memorization, Algeria, secondary education"
# thanks: "So Long, and Thanks for All the Fish"
publisher: My Publisher
rights: © 2025 Mouadh Bendjedidi, Thakira-DZ
identifier:
- scheme: ISBN-10
text: 1234567890

# Formatting
toc-title: "Table of Contents"
toc: true
toc_depth: 2
lof: false # List of figures
lot: false # List of tables

documentclass: book # See https://en.wikibooks.org/wiki/LaTeX/Document_Structure#Document_classes
#classoption: [notitlepage, onecolumn, openany]
geometry: [a5paper, bindingoffset=0mm, inner=20mm, outer=20mm, top=20mm, bottom=20mm] # See https://ctan.org/pkg/geometry

---
11 changes: 11 additions & 0 deletions manuscript/010_intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
tags: [published]
---
# Introduction

مرحباً بك في طريقتك الجديدة والممتعة لمراجعة مصطلحات التاريخ والجغرافيا!

هذا المشروع مخصّص لتلاميذ السنة الثالثة ثانوي في الجزائر الذين يريدون أن يراجعوا بذكاء ويقوّوا ذاكرتهم بأسلوب سهل، فعّال وممتع يخليك تدي النقطة الكاملة في جزء المصطلحات لي تقدر على الأغلب 10 نقاط !!

## كيفاش تخدم مع هذا الكتاب؟
هذا الكتاب فيه كل المصطلحات أجمعين وراح يكون فالمستقبل تحديثات للمصطلحات وهذا الكتاب ككل راح يكون مفتوح المصدر معناه تقدر تصحح الأخطاء لي فيه وكلش عبر الزيارة للموقع تاعنا ولا مستودع تاعنا في جيت هوب (github).
Loading