Skip to content

Commit 1f4eb3c

Browse files
committed
[v0.1] Refactor tables and FAQs
1 parent cc7ba93 commit 1f4eb3c

File tree

4 files changed

+37
-36
lines changed

4 files changed

+37
-36
lines changed

spec/section_descriptions.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ \subsection{[ucf-meta]}
1818

1919
\begin{specsubtable}{Key}{Type}{Required}{Description}
2020
\specsubtablerow{version}{string}{yes}{UCF specification version (e.g., "0.2")}
21-
\specsubtablerow{generated-at}{datetime (RFC 3339)}{yes}{UTC or local datetime of file creation}
22-
\specsubtablerow{source-app}{string}{yes}{Name or identifier of the application that generated this file}
21+
\specsubtablerow{generated-at}{datetime}{yes}{UTC or local datetime of file creation}
22+
\specsubtablerow{source-app}{string}{yes}{Identifier of the application that generated this file}
2323
\end{specsubtable}
2424

2525
Example:
@@ -52,6 +52,8 @@ \subsection{[complainant-details]}
5252
auth-id = "citizen_02349"
5353
\end{lstlisting}
5454

55+
\specnote{Sensitive complainant details would be encrypted. This is just for readability sake.}
56+
5557
\subsection{[complaint-details]}
5658

5759
Core description of the issue and the department responsible.

spec/spec.cls

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,11 @@
224224
\vspace{0.02\textheight} %
225225

226226
% Define table column widths and alignments (L, R or C for left, right or center alignment)
227-
\begin{longtable}[H]{@{} L{0.25\textwidth} L{0.65\textwidth}}%
228-
\toprule
227+
\begin{longtable}[H]{@{} | C{0.25\textwidth} | L{0.65\textwidth} |}%
228+
\hline
229229
% Header row
230230
\textbf{#1} & \textbf{#2} \\
231-
\midrule
231+
\hline
232232
}{
233233
\end{longtable}
234234

@@ -242,7 +242,7 @@
242242
% Arguments: 1) description 2) quantity 3) unit price 4) note
243243
\newcommand{\spectablerow}[2]{%
244244
#1 & #2 \\
245-
\midrule
245+
\hline
246246
}
247247

248248
%----------------------------------------------------------------------------------------
@@ -254,11 +254,11 @@
254254
\vspace{0.02\textheight} %
255255

256256
% Define table column widths and alignments (L, R or C for left, right or center alignment)
257-
\begin{longtable}[H]{@{} L{0.15\textwidth} L{0.10\textwidth} L{0.10\textwidth} L{0.50\textwidth}}%
258-
\toprule
257+
\begin{longtable}[H]{@{} | C{0.15\textwidth} | C{0.10\textwidth} | C{0.10\textwidth} | L{0.50\textwidth} |}%
258+
\hline
259259
% Header row
260260
\textbf{#1} & \textbf{#2} & \textbf{#3} & \textbf{#4} \\
261-
\midrule
261+
\hline
262262
}{
263263
\end{longtable}
264264

@@ -272,7 +272,7 @@
272272
% Arguments: 1) col-1 2) col-2 3) col-3 4) col-4
273273
\newcommand{\specsubtablerow}[4]{%
274274
#1 & #2 & #3 & #4\\
275-
\midrule
275+
\hline
276276
}
277277

278278
%----------------------------------------------------------------------------------------
@@ -338,7 +338,7 @@
338338
\expandafter\ifstrequal\expandafter{#2}{}{}{{\large #2}}
339339

340340
% Vertical whitespace
341-
\vspace{0.025\textheight}
341+
\vspace{0.015\textheight}
342342
}
343343

344344
%----------------------------------------------------------------------------------------

spec/spec.tex

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
\bigskip
88
\hrule
99

10-
\spectitle{Universal Complaint Format Specification}{VERSION: v0.1}
10+
\spectitle{Universal Complaint Format Specification}{VERSION: v0.1 | Author: Prathu Baronia}
1111

1212
\section{Overview}
1313

@@ -39,38 +39,39 @@ \section{Compliance}
3939
\end{itemize}
4040

4141
\section{FAQs}
42-
\begin{specpara}{Why TOML?}
4342

43+
\begin{specpara}{Why TOML?}
4444
\href{https://toml.io/en}{TOML} is human-readable, simple, and supported across many
4545
programming \href{https://github.com/toml-lang/toml/wiki}{languages}. Its
4646
well-defined syntax ensures minimal ambiguity, making UCF files easy to parse,
4747
validate, and generate.
48-
4948
\end{specpara}
5049

51-
\section{Notes}
52-
\begin{specitemize}{Features}
53-
54-
\item Autopopulation: Apps can automatically fill fields
55-
like `name`, `contact`, `location`, and `auth-id` from user profiles and device
56-
metadata.
50+
\begin{specpara}{Which fields will be autopopulated?}
51+
Fields like `name`, `contact`, `location`, and `auth-id` from user profiles and
52+
device metadata.
53+
\end{specpara}
5754

58-
\item Hashing / Blockchain: A hash (e.g., SHA256 of the entire `.ucf` file)
59-
can be embedded or stored separately in on-chain complaint registries for
60-
verification.
55+
\begin{specpara}{How blockchain helps here?}
56+
A hash (e.g., SHA256 of the entire `.ucf` file) can be embedded or stored
57+
separately in on-chain complaint registries for verification.
58+
\end{specpara}
6159

62-
\item Extensibility: Departments can introduce new optional tables
60+
\begin{specpara}{Is it extensible?}
61+
Departments can introduce new optional tables
6362
(e.g., `[complaint-meta]`, `[response-records]`) without breaking
6463
compatibility.
64+
\end{specpara}
6565

66-
\item Interoperability: Because TOML is widely supported, implementations in
67-
various languages (Python, Go, Rust, Node.js, etc.) can easily parse or
68-
generate `.ucf` files.
69-
70-
\item Privacy Considerations: Sensitive citizen information (e.g., contact
71-
numbers, precise coordinates) should be encrypted or excluded from public
72-
blockchain entries.
66+
\begin{specpara}{Is it interoperable?}
67+
Because TOML is widely supported, implementations in various languages (Python,
68+
Go, Rust, Node.js, etc.) can easily parse or generate `.ucf` files. So
69+
multiple system implementations can work easily with the same format.
70+
\end{specpara}
7371

74-
\end{specitemize}
72+
\begin{specpara}{Is privacy a concern here?}
73+
Sensitive citizen information (e.g., name, contact numbers) would be encrypted.
74+
The plain text citizen info shown above is just for ease of readability.
75+
\end{specpara}
7576

7677
\end{document}

spec/structure.tex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@ \section{General structure}
33

44
A \textit{.ucf} file is a valid TOML document in `UTF-8` encoding, containing
55
multiple table sections. Each section describes a logical part of the
6-
complaint.
7-
8-
Each complaint corresponds to one \textit{.ucf} file. Comments begin with \#
9-
and may appear anywhere outside strings.
6+
complaint.Each complaint corresponds to one \textit{.ucf} file. Comments begin
7+
with \# and may appear anywhere outside strings.

0 commit comments

Comments
 (0)