Skip to content

Commit 450e30d

Browse files
committed
feat: extract and display each letter/symbol in the word
Do the extraction for all languages.
1 parent aebda03 commit 450e30d

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

pom-dependency-tree.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ai.elimu:webapp:war:2.6.140-SNAPSHOT
2-
+- ai.elimu:model:jar:model-2.0.124:compile
1+
ai.elimu:webapp:war:2.6.142-SNAPSHOT
2+
+- ai.elimu:model:jar:model-2.0.127:compile
33
| \- com.google.code.gson:gson:jar:2.13.1:compile
44
| \- com.google.errorprone:error_prone_annotations:jar:2.38.0:compile
55
+- org.springframework:spring-context:jar:6.0.11:compile

src/main/webapp/WEB-INF/jsp/content/word/create.jsp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515
</div>
1616

1717
<c:if test="${not empty word.text}">
18-
<c:if test="${(applicationScope.configProperties['content.language'] == 'HIN') || (applicationScope.configProperties['content.language'] == 'THA')}">
19-
<%-- Extract and display each letter of the word. E.g. "न ह ी ं" for "नहीं" --%>
20-
<div class="col s12 grey-text" style="font-size: 4em;">
21-
<c:forEach begin="0" end="${fn:length(word.text) - 1}" varStatus="status">
22-
<c:set var="letter" value="${fn:substring(word.text, status.index, status.index + 1)}" />
23-
<c:out value="${letter}" /><c:out value=" " />
24-
</c:forEach>
25-
</div>
26-
</c:if>
18+
<%-- Extract and display each letter/symbol in the word. E.g. "न ह ी ं" for "नहीं" --%>
19+
<div class="col s12 grey-text" style="font-size: 4em;">
20+
<c:forEach begin="0" end="${fn:length(word.text) - 1}" varStatus="status">
21+
<c:set var="letter" value="${fn:substring(word.text, status.index, status.index + 1)}" />
22+
<c:out value="${letter}" /><c:out value=" " />
23+
</c:forEach>
24+
</div>
2725
</c:if>
2826
</div>
2927

src/main/webapp/WEB-INF/jsp/content/word/edit.jsp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@
2424
</div>
2525

2626
<c:if test="${not empty word.text}">
27-
<c:if test="${(applicationScope.configProperties['content.language'] == 'HIN') || (applicationScope.configProperties['content.language'] == 'THA')}">
28-
<%-- Extract and display each letter of the word. E.g. "न ह ी ं" for "नहीं" --%>
29-
<div class="col s12 grey-text" style="font-size: 4em;">
30-
<c:forEach begin="0" end="${fn:length(word.text) - 1}" varStatus="status">
31-
<c:set var="letter" value="${fn:substring(word.text, status.index, status.index + 1)}" />
32-
<c:out value="${letter}" /><c:out value=" " />
33-
</c:forEach>
34-
</div>
35-
</c:if>
27+
<%-- Extract and display each letter/symbol in the word. E.g. "न ह ी ं" for "नहीं" --%>
28+
<div class="col s12 grey-text" style="font-size: 4em;">
29+
<c:forEach begin="0" end="${fn:length(word.text) - 1}" varStatus="status">
30+
<c:set var="letter" value="${fn:substring(word.text, status.index, status.index + 1)}" />
31+
<c:out value="${letter}" /><c:out value=" " />
32+
</c:forEach>
33+
</div>
3634
</c:if>
3735
</div>
3836

0 commit comments

Comments
 (0)