-
-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regarding signal name color and signal width #397
Comments
No, signal line widths can't be changed. It is NOT necessary because SVG is a vector format. Even if you scale the image, you will not lose any details (as long as it is in SVG format)
Yes, you can do that, as shown in the code screenshot below. But, this is not usually required.
The reason you are encountering the problem is probably because you have exported to PNG via the menu and tried to embed the PNG. I have seen that the PNG exported by WaveDrom is rasterized at very low resolution. So, it is not possible to embed them into high-quality documents. My workflow for such documents is to export to SVG, open the SVG in Chrome or Edge, and 'Print to PDF' from the browser's Print menu. The resultant PDF is much more portable and is in vector format. You can zoom in / scale as much as you like without encountering any loss of detail. I have seen that many programs (even ones like Gimp) do not have good / up to date SVG parsers - so intermediate PDF conversion in helpful in such cases. |
Dear Ganesh,
Thank you so much for your help.
actually i need to change the color of signal names because of some paper
requirements.
Anyway, thank you so much for the help.
Best regards
Vikas
…On Mon, Oct 30, 2023, 11:27 Ganesh-AT ***@***.***> wrote:
1.) can we change the width of signal lines
No, signal line widths can't be changed. It is NOT necessary because SVG
is a vector format. Even if you scale the image, you will not lose any
details (as long as it is in SVG format)
2.) can we change the color of signal name to black in bold letters
Yes, you can do that, as shown in the code screenshot below. But, this is
not usually required.
[image: image]
<https://user-images.githubusercontent.com/6980722/278930101-eafbdc74-9cd1-4a09-aef2-3e9839a9e198.png>
because when I put these figures back in the word file its hard to see
clearly very small and dull color
The reason you are encountering the problem is probably because you have
exported to PNG via the menu and tried to embed the PNG. I have seen that
the PNG exported by WaveDrom is rasterized at very low resolution. So, it
is not possible to embed them into high-quality documents.
My workflow for such documents is to export to SVG, open the SVG in Chrome
or Edge, and 'Print to PDF' from the browser's Print menu. The resultant
PDF is much more portable and is in vector format. You can zoom in / scale
as much as you like without encountering any loss of detail. I have seen
that many programs (even ones like Gimp) do not have good / up to date SVG
parsers - so intermediate PDF conversion in helpful in such cases.
—
Reply to this email directly, view it on GitHub
<#397 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL4WD6SVMXVMX7FDUAKW74TYB4NAPAVCNFSM6AAAAAA6UX6M3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGQYTMNZYHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi Ganesh, I have one issue in the code you provided. Actually I tried with style but i dont know why the names are not visible now. { } |
Yes, this is the issue #398 that I reported yesterday. I have encountered this issue before, and used a workaround (have at least one signal name that is longer than the longest custom tspan entry). However, I see that can't be adopted for your use-case since you have no normal signal names. The only workaround I can suggest for you is to 'edit' the SVG prior to export: Open up the debugging menu by right-clicking on the waveform and clicking 'Inspect' to bring up the elements as shown above. Double-click on the width property of the SVG element makes it editable. Change it to a wider value as shown below. Then, you can click on the menu and 'Export SVG'. The downloaded SVG should be fine despite the wrong viewbox: You can then print to PDF and embed it in your Word doc or use it any other way. |
Hi Ganesh,
Thank you very much for your help.
Best Regards
Vikas
…On Tue, Oct 31, 2023, 16:28 Ganesh-AT ***@***.***> wrote:
Yes, this is the issue #398
<#398> that I reported
yesterday. I have encountered this issue before, and used a workaround
(have at least one signal name that is longer than the longest custom tspan
entry). However, I see that can't be adopted for your use-case since you
have no normal signal names.
The only workaround I can suggest for you is to 'edit' the SVG prior to
export:
[image: image]
<https://user-images.githubusercontent.com/6980722/279305426-6abc8d3f-a8aa-4a7d-a172-8fad73948f4a.png>
Open up the debugging menu by right-clicking on the waveform and clicking
'Inspect' to bring up the elements as shown above. Double-click on the
width property of the SVG element makes it editable. Change it to a wider
value as shown below.
[image: image]
<https://user-images.githubusercontent.com/6980722/279306155-c5d8aeb5-7bc9-4a5f-bd48-51e6a2e0d2dd.png>
Then, you can click on the menu and 'Export SVG'. The downloaded SVG
should be fine despite the wrong viewbox:
[image: image]
<https://user-images.githubusercontent.com/6980722/279306492-e876e6da-b728-4527-927e-e02b04b5113e.png>
You can then print to PDF and embed it in your Word doc or use it any
other way.
—
Reply to this email directly, view it on GitHub
<#397 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL4WD6WA26GCWVG5RY3GZFDYCCZCHAVCNFSM6AAAAAA6UX6M3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBWG4ZTENBXHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
While investigating this issue further, I discovered a much more reliable workaround by using invisible Unicode characters in the name of a dummy lane.
Check the example in the screenshot below for the same case mentioned in the previous reply |
hi ganesh
thank you very much
thats actually great. its help me a lot
Best Regards
Vikas
…On Wed, Nov 1, 2023, 10:30 Ganesh-AT ***@***.***> wrote:
While investigating this issue further, I discovered a much more reliable
workaround by using invisible Unicode characters in the name of a dummy
lane. Check the example in the screenshot below for the same case mentioned
in the previous reply
<#397 (comment)>
[image: image]
<https://user-images.githubusercontent.com/6980722/279559008-6631cdeb-f12b-4c62-9721-31c4ab89c11b.png>
—
Reply to this email directly, view it on GitHub
<#397 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL4WD6TSAMGWKAKPHRGPFJTYCGX2XAVCNFSM6AAAAAA6UX6M3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBYGMYDGMRSGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
signal line style can be changed by changing skin as explained here https://github.com/wavedrom/wavedrom/tree/trunk/unpacked |
Please describe your system environment before submitting your Issue.
hi
1.) can we change the width of signal lines
2.) can we change the color of signal name to black in bold letters
because when I put these figures back in the word file its hard to see clearly very small and dull color
The text was updated successfully, but these errors were encountered: