manually added front matter

This commit is contained in:
Richard Kranendonk 2026-05-07 14:26:22 +02:00
parent 1baf4fbd9a
commit 84942d44e3
3 changed files with 14 additions and 33 deletions

View file

@ -1,3 +1,17 @@
---
notetype: reference
standard: ISO 27002
version: 2022
language: EN
id: "A.3"
title: "Terms, definitions, and abbreviated terms"
tags:
- iso27002/2022/EN
- sourcetext
status: active
---
# 3 Terms, definitions, and abbreviated terms
## 3.1 Terms and definitions ## 3.1 Terms and definitions
For the purposes of this document, the following terms and definitions apply. For the purposes of this document, the following terms and definitions apply.
ISO and IEC maintain terminology databases for use in standardization at the following addresses: — ISO Online browsing platform: available at https://www.iso.org/obp ISO and IEC maintain terminology databases for use in standardization at the following addresses: — ISO Online browsing platform: available at https://www.iso.org/obp

View file

@ -22,7 +22,6 @@ tags:
- sourcetext - sourcetext
status: active status: active
--- ---
## 5.3 Segregation of duties ## 5.3 Segregation of duties
### Control ### Control

View file

@ -1,32 +0,0 @@
#!/usr/bin/env python3
import os
import re
directory = '/Users/rico/src/iso27diy-corp/Corpus/Standards/ISO27x/OST/27002/NL/'
for filename in os.listdir(directory):
if filename.endswith('.md') and filename.startswith('a-') and not filename.startswith('a-3') and not filename.startswith('a-4'):
filepath = os.path.join(directory, filename)
with open(filepath, 'r') as f:
lines = f.readlines()
new_lines = []
skip = False
for line in lines:
stripped = line.strip()
if stripped.startswith('## '):
new_lines.append(line)
skip = True # Start skipping table lines
elif skip:
if stripped.startswith('|') or stripped.startswith('+') or stripped == '':
continue # Skip table and blank lines
else:
skip = False
new_lines.append(line) # First content line
else:
new_lines.append(line)
with open(filepath, 'w') as f:
f.writelines(new_lines)
print("Legacy property tables removed from NL files.")