Open main menu

Gramps β

Changes

Report API/he

176 bytes added, 09:11, 8 October 2024
m
מסמך מילולי API: translation
{{-}}
==מסמך API מילולי API==
The specification of the את מפרט ה־API לרכיב Textdoc API is ניתן למצור בקישור הב: [https://gramps-project.org/docs/gen/gen_plug.html#gramps.gen.plug.docgen.textdoc.TextDoc hereThe interface for adding media objects is as follows:
המנשק להוספת עצמי מדיה הוא כדלקמן:
<dev dir"ltr">
<pre>
add_media_object(name, align, w_cm, h_cm, alt='', style_name=None, crop=None)[sourceמקור]
Add a photo of the specified width הוסף תמונה ברוחב שצוין (in centimetersבסנטימטרים). Parameters משתנים:
name – filename of the image to add- שם קובץ התמונה אותה מעוניינים להוסיף align – alignment of the imageיישור התמונה. Valid values are ‘left’, ‘right’ערכים תקינים הם 'שמאל', ‘center’'ימין', and ‘single’'מרכז' ו'יחיד' w_cm – width in centimeters- רוחב בסנטימטרים h_cm – height in centimeters- גובה בסנטימטרים alt – an alternative text to use- מלל חלופי בו ניתן להשתמש. Useful for eg html reportsשימושי לדוגמה בדוחות HTML style_name – style to use for captions- שם הסגנון בו יעשה שימוש בכתוביות crop – image cropping parameters- משתנים לחיתוך תמונה
</pre>
</dev>
לתשומת לב! עקב מבנה מסמכים אלה, תמונות מותרות רק כמסמכי או תאי צאצא (כלומר עקיבה).
Note that because of the structure of these documents, Images are only allowed as children (i.e. following) Document or Cell. This interface is used in the following reportsמנשק זה משמש בדוחות הבאים
{| {{Prettytable}}
|-
6,817
edits