aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/sdp.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-02-10 16:51:55 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commitc98283e3919f39c093e1eb51f80e6f259a7fd103 (patch)
tree77cfd266466f8cab3ecf54f81716a9d2a85f87f8 /org/sdp.org
parent0.13.0 batch processing, reset values for each document (footnotes, bookindex... (diff)
output, sisupod & a few switches
Diffstat (limited to 'org/sdp.org')
-rw-r--r--org/sdp.org9
1 files changed, 9 insertions, 0 deletions
diff --git a/org/sdp.org b/org/sdp.org
index 032709f..46bd97a 100644
--- a/org/sdp.org
+++ b/org/sdp.org
@@ -575,6 +575,15 @@ struct DocumentMatters {
string _k = fn_src;
return _k;
}
+ auto language() {
+ string _k;
+ if (auto m = match(fn_src, rgx.language_code_and_filename)) {
+ _k = m.captures[1];
+ } else {
+ _k = "en";
+ }
+ return _k;
+ }
auto file_insert_list() {
string[] _k = _0_header_1_body_content_2_insert_filelist_tuple[2];
return _k;