equal
deleted
inserted
replaced
141 font-weight: bolt; |
141 font-weight: bolt; |
142 } |
142 } |
143 .pron { |
143 .pron { |
144 color: magenta; |
144 color: magenta; |
145 } |
145 } |
|
146 .attrs { |
|
147 color: blue; |
|
148 } |
|
149 .homo { |
|
150 font-style: italic; |
|
151 } |
|
152 .homo i { |
|
153 color: green; |
|
154 } |
146 .pos { |
155 .pos { |
147 color: green; |
156 color: green; |
148 font-style: italic; |
157 font-style: italic; |
149 } |
158 } |
150 .lang { |
159 .lang { |
166 .hyper { |
175 .hyper { |
167 color: #600080; |
176 color: #600080; |
168 } |
177 } |
169 .hypo { |
178 .hypo { |
170 color: #606080; |
179 color: #606080; |
171 } |
|
172 .attrs { |
|
173 color: blue; |
|
174 } |
180 } |
175 span.ex { |
181 span.ex { |
176 font-style: italic; |
182 font-style: italic; |
177 font-size: .85em; |
183 font-size: .85em; |
178 } |
184 } |
509 v3 = (hw.headword, hw.pron) |
515 v3 = (hw.headword, hw.pron) |
510 if 's' in hw.attrs: |
516 if 's' in hw.attrs: |
511 singular = (hw.headword, hw.pron) |
517 singular = (hw.headword, hw.pron) |
512 if 'pl' in hw.attrs: |
518 if 'pl' in hw.attrs: |
513 plural = (hw.headword, hw.pron) |
519 plural = (hw.headword, hw.pron) |
|
520 if hw.homo is not None and len(hw.homo) > 0: |
|
521 buf.append("<span class='homo'> <i>homo:</i>") |
|
522 buf.append("; ".join(hw.homo)) |
|
523 buf.append("</span>") |
514 buf.append("</div>") |
524 buf.append("</div>") |
515 direct_from = "".join(buf) |
525 direct_from = "".join(buf) |
516 buf = [] |
526 buf = [] |
517 for sense in translations: |
527 for sense in translations: |
518 write_sense(buf, sense, with_examples=True) |
528 write_sense(buf, sense, with_examples=True) |