aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/abstraction.d
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 /src/sdp/abstraction.d
parent0.13.0 batch processing, reset values for each document (footnotes, bookindex... (diff)
output, sisupod & a few switches
Diffstat (limited to 'src/sdp/abstraction.d')
-rw-r--r--src/sdp/abstraction.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sdp/abstraction.d b/src/sdp/abstraction.d
index c1907f7..380be1d 100644
--- a/src/sdp/abstraction.d
+++ b/src/sdp/abstraction.d
@@ -100,6 +100,15 @@ template SiSUabstraction() {
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;