Skip to content

Commit

Permalink
Fix bug of title tag, name, weight inside tag
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Dec 28, 2024
1 parent cf6f088 commit a5ab9a4
Show file tree
Hide file tree
Showing 25 changed files with 198 additions and 76 deletions.
10 changes: 10 additions & 0 deletions config/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,16 @@

نام این دستور معادل دستور `font` می‌باشد.

این دستور دارای ویژگی‌های زیر می‌باشد:

| نام ویژگی | توضیح | تولید |
|-----------|------------|-------|
| `نام` | | `name` |
| `منبع` | | `src` |
| `محدود یونیکد` | | `unicode_range` |
| `سبک` | | `style` |
| `وزن` | | `weight` |

<h2 id="media">دستور <code>واکنش گرا</code></h2>

این دستور مادر است و می تواند حامی دستوراتی به عنوان فرزند باشد.
Expand Down
76 changes: 59 additions & 17 deletions config/json/layout/attribute/type.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"generate_name": "group",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_GROUP",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"group"
Expand All @@ -18,11 +18,53 @@
]
}
},
{
"generate_name": "weight",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_WEIGHT",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"weight"
],
"fa": [
"وزن"
]
}
},
{
"generate_name": "unicode_range",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_UNICODE_RANGE",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"unicode range"
],
"fa": [
"محدود یونیکد"
]
}
},
{
"generate_name": "style",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_STYLE",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"style"
],
"fa": [
"سبک"
]
}
},
{
"generate_name": "class",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_CLASS",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"description": {
"fa": "ویژگی کلاس جهت تنظیم نام کلاس برای یک دستور می‌باشد."
},
Expand All @@ -39,7 +81,7 @@
"generate_name": "id",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_ID",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"description": {
"fa": "ویژگی شناسه جهت تنظیم شناسه برای یک دستور می‌باشد."
},
Expand All @@ -56,7 +98,7 @@
"generate_name": "content",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_CONTENT",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"description": {
"fa": "جهت تنظیم یک محتوا به یک دستور می‌باشد."
},
Expand All @@ -73,7 +115,7 @@
"generate_name": "src",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_SRC",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"src"
Expand All @@ -87,7 +129,7 @@
"generate_name": "label",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_LABEL",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"label"
Expand Down Expand Up @@ -143,7 +185,7 @@
"generate_name": "title",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_TITLE",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"title"
Expand Down Expand Up @@ -185,7 +227,7 @@
"generate_name": "author",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_AUTHOR",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"author"
Expand All @@ -199,7 +241,7 @@
"generate_name": "description",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_DESCRIPTION",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"description"
Expand All @@ -213,7 +255,7 @@
"generate_name": "keywords",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_KEYWORDS",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"keywords"
Expand All @@ -227,7 +269,7 @@
"generate_name": "icon",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_ICON",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"icon"
Expand All @@ -241,7 +283,7 @@
"generate_name": "name",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_NAME",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"name"
Expand Down Expand Up @@ -269,7 +311,7 @@
"generate_name": "refresh",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_REFRESH",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"refresh"
Expand All @@ -283,7 +325,7 @@
"generate_name": "viewport",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_VIEWPORT",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"viewport"
Expand All @@ -297,7 +339,7 @@
"generate_name": "value",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_VALUE",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"value"
Expand All @@ -311,7 +353,7 @@
"generate_name": "for",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_FOR",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"for"
Expand All @@ -325,7 +367,7 @@
"generate_name": "placeholder",
"id": "AST_LAYOUT_ATTRIBUTE_TYPE_PLACEHOLDER",
"reserved_values": "",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING",
"type": "AST_LAYOUT_ATTRIBUTE_FILTER_STRING_ANY",
"text": {
"en": [
"placeholder"
Expand Down
7 changes: 7 additions & 0 deletions config/json/layout/type.json
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,13 @@
"descriptions": "",
"examples": "",
"generate_name": "font",
"attributes": [
"AST_LAYOUT_ATTRIBUTE_TYPE_NAME",
"AST_LAYOUT_ATTRIBUTE_TYPE_SRC",
"AST_LAYOUT_ATTRIBUTE_TYPE_UNICODE_RANGE",
"AST_LAYOUT_ATTRIBUTE_TYPE_STYLE",
"AST_LAYOUT_ATTRIBUTE_TYPE_WEIGHT"
],
"id": "AST_LAYOUT_TYPE_FONT",
"is_mother": true,
"text": {
Expand Down
Loading

0 comments on commit a5ab9a4

Please sign in to comment.